Thread: keyDown check?
View Single Post
  #27  
Old 09-20-2006, 09:03 AM
Skyld Skyld is offline
Script-fu
Skyld's Avatar
Join Date: Jan 2002
Location: United Kingdom
Posts: 3,914
Skyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud of
Send a message via AIM to Skyld
Quote:
Originally Posted by Tyrial View Post
Is there no builtin command that values the length of a <something>?

Like in Java, you can use Integer.MAX_VALUE or such.. Perhaps this.MAX_VALUE? Don't know.. try.
If you mean is there a way to find out the maximum value of a specific type of data (like you might do sizeof(int) in C), then no, there isn't such a thing in GScript.

If you are just looking for the length of the current data, then yes, obj.length() is correct.
Reply With Quote