Want to get rid of Google Ads, click here.
+ Reply to Thread
Results 1 to 3 of 3

Thread: using a field named "length"

  1. #1
    Senior Member glg's Avatar
    Join Date
    Aug 2004
    Location
    Chicago, IL, USA
    Posts
    715

    Default using a field named "length"

    Any idea how to use a field named "length"?

    I can't figure out how to reference such a field.

    file.length doesn't work, as length is a reserved word in Javascript, so it tries to execute a function length (which doesn't work). I tried lengthprgn (like it would get created in an RDBMS), lengthsc, lengthPRGN, lengthSC. None work.

    Anyone done this?

  2. #2
    Senior Member
    Join Date
    Jan 2002
    Location
    The Netherlands
    Posts
    930

    Default

    An undescore I think should work - for JavaScript anyway, so "file._length".

  3. #3
    Senior Member glg's Avatar
    Join Date
    Aug 2004
    Location
    Chicago, IL, USA
    Posts
    715

    Default

    just found it in the programmers guide. precede the fieldname with an underscore

    file._length

    Thanks harn!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts