>>Who knows what lcSpace does in an Intellisense Script? And are there any other variables that can be used? I couldn't find it in the Intellisense documentation.
>>
>>
IF ~
>>
>><<lcSpace>>ELSE
>>
>><<lcSpace>>ENDIF
>
>I am not sure, but my guess is that <
> is replaced with a TAB or the number of spaces specified in your setup.
Hi Tore,
Actually, I naively tried IF ~
<<lcTab>>
<<lcSpace>>ELSE
<<lcTab>>
<<lcSpace>>ENDIF
and noticed that lcTab is not recognized. That made me wonder what this lcSpace was doing there. I also noticed that leaving it out didn't change the result. And I also wonder why there should be a space at the beginning of ... AAH! Now I get it! Let me try sometinhg...IF
IF
ELSE
ENDIF
ELSE
ENDIF
Yes, I see it now. It takes care of indentation! Ok, so my modification could be:do case
<<lcSpace>>case ~
<<lcSpace>><<chr(9)>>
<<lcSpace>>otherwise
<<lcSpace>><<chr(9)>>
<<lcSpace>>endcase
Yes, it works as expected. I also tried...do case
<<lcSpace>>case ~
<<lcSpace>><<lcSpace>>
<<lcSpace>>otherwise
<<lcSpace>><<lcSpace>>
<<lcSpace>>endcase
...but it gives too many indentations for the 'empty' lines. The lcSpace variable actually inserts tabs (in my IDE) and 2 * lcSpace gives 6 tabs in case the basic indentation is 3. I need 4 in that case.
I wonder why there's no lcTab. Or is there a place where it can be inserted in source code? I couldn't locate it in the Foxcode source code (C:\Program Files\Microsoft Visual FoxPro 9\VFPSource\foxcode).
Groet,
Peter de Valença
Constructive frustration is the breeding ground of genius.
If there’s no willingness to moderate for the sake of good debate, then I have no willingness to debate at all.
Let's develop superb standards that will end the holy wars.
"There are three types of people: Alphas and Betas", said the beta decisively.
If you find this message rude or offensive or stupid, please take a step away from the keyboard and try to think calmly about an eventual a possible alternative explanation of my message.