Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Declaring Variables
#1
I am getting weird results using int+, fyi, I pass the value to a function. For example:

int+ hWnd="testing 123"

When I do a message box to get the value of hWnd, I get numeric numbers and not the text. If I use str, the function does not recognize the variable.

Thanks,
Pam
#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
;...


Forum Jump:


Users browsing this thread: 1 Guest(s)