Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Declaring Variables
#2
String values should be assigned to variables of string types, eg str or lpstr. Numeric values should be assigned to variables of numeric types, eg int or double. When passing values to function as arguments, assignment also occurs - value specified in caller function is assigned to local variable of callee function.

Caller
Code:
Copy      Help
str s="string"
int i=123
double d=1.5

Test s i d

Function Test
Code:
Copy      Help
function str'a int'b double'd
;...


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)