Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Indenting with tabs or space
Message
From
31/01/2023 08:49:26
 
 
To
31/01/2023 08:38:21
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Germany
General information
Forum:
Visual FoxPro
Category:
VFPX/Sedna
Miscellaneous
Thread ID:
01686038
Message ID:
01686043
Views:
40
Likes (1)
>>>>Hi folks,
>>>>does anyone know how to programmatically determine whether beautify is set up to indent using tabs or spaces?
>>>>And in case of spaces, how many?
>>>
>>>https://www.tek-tips.com/viewthread.cfm?qid=1583909
>>>
>>>But I don't know how the settings are saved
>>
>>I also thought that it was in the Data field, hopefully someone can help me decipher it.
>
>I guess you can try RESTORE FROM on the Data, this will expose the variables.

Thanks everybody, I found a perfect solution. I need this for a new Thor tool I'm working on, so I have access to all of Thor's framework.
#Define ccTab Chr(9)
If Execscript(_Screen.cThorDispatcher, 'Thor_Proc_BeautifyOption', 4) = 1
  Return ccTab
Else
  Return Space(Execscript(_Screen.cThorDispatcher, 'Thor_Proc_BeautifyOption', 3))
Endif
Previous
Reply
Map
View

Click here to load this message in the networking platform