Menu

#3 Add dynamic variable query/set functions

Next Release (v1.0)
open
RyanDog
Functions (18)
5
2007-02-23
2007-01-16
No

In conjunction with the proposed extended script functions, functions to look for, query, and set local variables in scripts and objects should be added; specifically:
short xVariableExists <ref>, <string>
long xGetLongVariable <ref>, <string>
short xGetShortVariable <ref>, <string>
float xGetFloatVariable <ref>, <string>
xSetLongVariable <ref>, <string>, <long>
xSetShortVariable <ref>, <string>, <short>
xSetFloatVariable <ref>, <string> <float>

Functions to iterate over the local variables in a reference should also be added; i.e. something like
ref, type, name xFirstVariable <ref>
ref, type, name xNextVariable <ref>

xVariableExists should return the type of the variable (short, long, or float).

If an xGet or xSet is used with an inappropriate type, the value should be converted to the desired type (if possible) before being returned or set. (That is, if xGetLongVariable is used with a short, the short should be converted to a long before being returned).

Discussion

  • Fliggerty

    Fliggerty - 2007-01-16
    • milestone: --> Next Release (v1.0)
     
  • Grant McDorman

    Grant McDorman - 2007-02-23
    • assigned_to: nobody --> ryandog
     
  • Yacoby

    Yacoby - 2007-06-14

    Logged In: YES
    user_id=1784528
    Originator: NO

    This would be amazingly useful for what I am writing at present

     

Log in to post a comment.