Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Class doesn't respond to visible=.f
Message
From
15/01/2017 18:54:47
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
Class doesn't respond to visible=.f
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01646692
Message ID:
01646692
Views:
84
I have a class made in the Class Designer (pic attached). It is added to a form with a textbox and a grid. The class, when put on the form, is set to visible=.f. - that works fine. In the next pic, after entering a part number, and running sql to get relevant data into the grid, the focus is set on a column's textbox for the user to enter a Bin # for the part to be put in on the shelf. When the Bin # is entered, and the textbox loses focus, the class I talked of above, is set to visible, and the user gets to choose a supplier, and enter and invoice number. In the lostfocus event of the textbox for entering the invoice number is code to save the info, and to once again make the class invisible, and then set the focus to a command button in the last column of the grid, so the user can click it if they want to print a label to stick on the part. The problem is that not all of the class becomes invisible - the combobox stays on the screen as in the last pic..

Any ideas why the class can't be turned invisible again??

Many thanks!

PS - I hope the pics display in the right order here...but it's not too difficult to follow the sequence if it is messed up...
Next
Reply
Map
View

Click here to load this message in the networking platform