Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do you modify a method with a builder ?
Message
De
21/11/2000 08:31:15
 
 
À
20/11/2000 19:26:58
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00443904
Message ID:
00444024
Vues:
19
You can use readmethod to get the existing method code into a string, and then create a temp file with filetostr which contains the code. After the temp file is available issue "Modify comm ( tempfile )" Upon completion do a filetostr, save the method code using writemethod, and finally delete the tempfile.

>Thanks a lot, Fred.
>
>Alex
>
>>>Hi,
>>>
>>>I am writing a generic builder (a sort of a PropertySheet which only shows the PEMs that you are interested in editing).
>>>
>>>It is easy to edit property values, but how do I give it the ability to edit methods ? You can get the current method code via GetPEM(), but how does one "PutPEM()" for a method ?
>>>
>>>Ideally the builder would edit the methods "in memory", allowing user to back out of changes if he decides not to save his form.
>>>
>>>TIA,
>>>
>>>Alex
>>
>>WRITEMETHOD()
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform