Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
I want to write code by hacking form
Message
From
18/04/2008 12:28:03
 
 
To
18/04/2008 12:10:33
Mike Yearwood
Toronto, Ontario, Canada
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01311701
Message ID:
01311717
Views:
15
This message has been marked as the solution to the initial question of the thread.
>>i want to add code in a form through the form.scx table.
>>in this table there is a column named method.
>>i tried to put directly code in it but when opening form in the form designer the added code doen't appear.
>>
>>i want to know to add code by this way ?
>
>Why do you want to do that? Adding code to a method is a design time activity. I hope you're not trying to do that at runtime. A builder can do it in the IDE.

You can do this for stock method names directly without any other changes. For custom methods, you must also add the method name in the RESERVED3 field prefixed with an asterick (*). This must be added to the field with a CRLF. Be careful because you can delete all custom methods and properties if this is not edited correctly.

After adding the code, you must then issue a COMPILE FORM (formname) command to have the code changes recognized. The code must be placed into the appropriate record for the object that it applies to. You can only add custom methods to the form object record.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform