Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Calling Beautify programatically
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00660261
Message ID:
00662402
Vues:
34
Where did you find about the second parameter? What values does it accept?

>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
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform