Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Calling Beautify programatically
Message
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Calling Beautify programatically
Miscellaneous
Thread ID:
00660261
Message ID:
00660261
Views:
83
Hi all,

I want to call _Beautify programatically. I know I can do the following:

do (_beautify) with "junk.txt", lcOptions

where lcOptions is a binary character string of values. Unfortunately, while this seems to run fine, I can't find an output file with the formatted code.

So I tried the following code (with junk.txt containing code to be formatted):

Set Path to JustPath(_beautify)
Set Procedure to beautify.app
? beautify("junk.txt", zzz)
* returns a temp file name. But that is
* the source file, not formatted file....
aa = beautify("junk.txt", zzz)
? aa

In further analysis, it appears that it does try to create an object OX based on the beautify class. Unfortunately, I can't get it to let me create that class. I have tried to set the library and procedure to the beautify.app, but to no avail.

Any ideas on how to call _beautify such that you can get the formatted code? What about the options settings?

Thanks,

Fletcher
Next
Reply
Map
View

Click here to load this message in the networking platform