>>>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).
I am at the SWFox in Phoenix conference right now, I will ask one of the gurus, and come back to you later.