Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do you modify a method with a builder ?
Message
From
21/11/2000 08:31:15
 
 
To
20/11/2000 19:26:58
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00443904
Message ID:
00444024
Views:
13
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()
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform