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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement