Difference between revisions of "Category:NVC"
m
→String Input
imported>Speedo (updated) |
imported>Speedo m (→String Input) |
||
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 | *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" | :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== |