>>
>>I'm trying to muddle through someone else's code, and I've come across something I've never seen before:
>>>>>
>>>>>IF myvar#3
>>>>>. . .
>>>>>ENDIF
>>>>>
>>>>>What's the # for? I can't find it in help (other than #DEFINE, etc.).
>>>>
>>>>"#" tries to symbolize a "=" sign with a slash through it: the "not-equals" symbol. You can use "<>" or "!=" instead.
>>>
>>>Did I miss someone else adding
>>>IF !myvar = 3
>>>
>>>Just so we could have FOURTH method?>>
>>And of course the long antiquated:
>>
>>NOT myvar = 3
>>
>>That's 5...is there a 6th? I'll bet Joy never expected this much milage from a simple question ;-)
>
>You crazies. Thanks.
>
>One more thing--the & symbol--I use macro substitution (&) all the time, and am aware of && for commenting, but I'm sure, when I wrote this note, admittedly long ago, that I saw it being used differently--perhaps something like
>
>myvar1&myvar2
>
>Any clue?
Actually, it´s just a macro. In the old Foxbase days (no arrays!) I used to write code like
FOR I=1 to 10
CC=ALLTRIM(STR(I))
@ ... SAY MYARRAY&CC
ENDFOR
Instead of an array, I had 10 different variables (MYARRAY1, MYARRAY2, and so on) and the macro (&CC) simulated an array usage.