Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
New method within a class
Message
 
 
To
13/04/2009 02:30:34
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01394482
Message ID:
01394563
Views:
50
>Yes thanks! I got it.
>
>Another question. In my command_buttons.vcx, I have the ADD command. I created a method in command_buttons.vcx called "Savemode" that hides all others button on that class and show the Save and Cancel button. I also have "APPEND BLANK".
>Thisform.SetAll("Visible",.F.,"Commandbutton")
>Thisform.cmdSave.Visible=.T.
>Thisform.cmdCancel.Visible=.T.
>APPEND BLANK
>
>I put the class on form Pettycash.
>On Pettycash form, I got to class Add button and put a SetAll command to enable all textboxes.
>Thisform.SetAll("Enabled",.T.,"Textbox")
>
>On run mode, textboxes are enabled. A blank is appended, but all buttons are all still visible.
>
>What could be wrong?

Are you sure you use default textbox class and not some special class for your textboxes?

Also where do you call your new method?
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform