Difference between revisions of "Category:NVC"

Jump to navigation Jump to search
6 bytes removed ,  11:40, 15 November 2008
m
imported>Speedo
(updated)
imported>Speedo
Line 57: Line 57:
  set myintvar to nvcReadInt mycontainer 0 0 key location
  set myintvar to nvcReadInt mycontainer 0 0 key location


*If a function has two parameters with the same name but different types (one string, the other string_var), the parameter with of the string type has priority so long as the string_var parameter is 0 or not supplied.
*If a function has two parameters with the same name but different types (one string, the other string_var), the parameter of type string has priority unless the string_var parameter is non-zero or not supplied.
*If a function (such as the [[nvcReadXXX]] functions) takes multiple strings as input, it is possible to mix strings and string_vars.  For example,
*If a function (such as the [[nvcReadXXX]] functions) takes multiple strings as input, it is possible to mix strings and string_vars.  For example,


Line 65: Line 65:
  set myintvar to nvcReadInt mycontainer 0 "location 1\location 2" key
  set myintvar to nvcReadInt mycontainer 0 "location 1\location 2" key


:is perfect valid syntax.  The name of the value to read will be taken from the "key" string_var, while the location of the value uses a string literal.
:is perfect valid syntax.  The name of the value to read will be taken from the string_var "key", while the location of the value uses a string literal.


==Miscellaneous==
==Miscellaneous==
Anonymous user

Navigation menu