Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Programmatically add code to all controls
Message
 
 
To
11/12/2003 17:52:08
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00858363
Message ID:
00858406
Views:
17
For the Write Method, I would call a new Form method -- [current valid code here] + CHR(13) + CHR(10)] + THISFORM.GlobalTextboxMethod() --to set to set the vale of your Form property instead of writing that code. That way you can put any other additional common code in the GlobalTextboxMethod

>working on it. the problem I am running into is that the form has a pageframe with 6 pages on it...
>
>>Run your code below from a PRG file. You need to account for the container classes that your texboxes are on in the modified code below.
>>
>>>That's what I'm currently working on, but for some reason after I do a dodefault in the init of the form, my labojects array does not get created using the code below:
>>
>>
>>MODIFY FORM MyForm NOWAIT
>>aselobj(laForm, 1)
>>loForm = laForm(1)
>>WITH THIS
>>    FOR EACH oControl IN loForm
>>        * test to see of baseclass is a textbox here. if not, loop
>>		LcDesiredCode = "THISFORM.mcalendorse=.T." + CHR(13) ;
>>		+ oControl.ReadMethod("VALID")
>>		oControl.WriteMethod("VALID", LcDesiredCode)
>>    ENDFOR
>>ENDWITH
>>
Mark McCasland
Midlothian, TX USA
Previous
Reply
Map
View

Click here to load this message in the networking platform