Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How can I add some code to multiple methods
Message
 
 
To
14/10/2003 10:12:41
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00838523
Message ID:
00838635
Views:
15
Vim,

1) Why not simply change the class that all of these textboxes are based on? If they are not all derived from your own class then why aren't they?

2) it's not good to use a global memvar for this because multiple forms with stomp on each other. It should at least be a form scoped property.

3) You might want to look at the GetFldState() function to determine if there have been any changes to the data. Which can probably get rid of the whole need for the InteractiveChange hook.

>I have a VFP 8 multiple page pageframe that contains about 100 text boxes. I want to stick in a line of code, "m_fieldmodified=.T.", in the interactivechange event of each text box. Many of the text boxes already have text in the interactive change event. Is there a quick way of doing this?
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Reply
Map
View

Click here to load this message in the networking platform