Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
LcSpace
Message
From
18/10/2007 12:19:32
 
 
To
18/10/2007 12:07:16
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01261857
Message ID:
01261881
Views:
14
>>>>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.

I see that you're representing Norway and the whole of Scandinavia. No reps from my country, so perhaps you can also be our rep there. :)

http://www.swfox.net/whoscoming.aspx
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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform