Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Use _beautify without user interaction
Message
From
15/11/2001 12:28:18
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
15/11/2001 10:01:05
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00581992
Message ID:
00582207
Views:
24
>I just tried do (_beautify) in a window (with ON KEY LABEL), but I got an error message. Apparently, some parameter(s) has to be added after do (_beautify), but I have no idea which ones.

I believed the code for the beautifier should be in the xSource directory, but it's not there, at least not in that form. It could be a part of the FoxDoc (aka documenting wizard, but still named FoxDoc in xSource), but I won't dig in there - I like it as it is. Anyway, here's what the help says:

You can also specify a beautification application in your configuration file by including a line using this syntax:

_BEAUTIFY = cProgramName
Note that your beautification application must accept a single parameter, the name of the program to beautify. Your beautification application can modify the program, write the modifications to a temporary file, and then return the name of the temporary file to FoxPro. FoxPro reads the temporary file back into the editing session under the original FoxPro program name and then deletes the temporary file.

Though, I've tried to
DO (_beautify) WITH FULLPATH('a.prg')
but it errored out in beautify.init, with 'Function argument value, type, or count is invalid.'

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform