Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Beautifying a memo field for code storage
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00700508
Message ID:
00700714
Views:
8
You can try the code from message #339581

>>Dear Foxsss;
>>
>>I have a memo field that stores some code typed by the end-user (using a form and an edit control).. I was wondering if there is a way to give them some resources (as we have in VFP.. Beautifying, Colors Highlighted, etc..)
>>
>>any help will be well coming....
>>
>>
>>TIA
>>
>>Claudio
>
>Hi Claudio,
>
>I was going to tell you to use beautify.app, but infuriately I had not found its parameter described in the VFP documentation. If you have a way to know necessary parameters, you could store your memo contents using STRTOFILE() into temporary file (you can use sys(2015) function to obtain random name). Then you can run beautify.app and get the result with FILETOSTR() to store it into the memo again. In our applications, we use the same technique when user edits some FoxPro code. The temporary file we open for edition with MODIFY COMMAND – then the user has syntax coloring for its code.

Just an opinion... Not a fact.
Previous
Reply
Map
View

Click here to load this message in the networking platform