Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Please advise on VFP equivalent of SHOW GET
Message
From
16/05/2000 10:28:54
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Please advise on VFP equivalent of SHOW GET
Miscellaneous
Thread ID:
00369934
Message ID:
00369934
Views:
109
I am writing a FPD to VFP migrator that replaces GETS with objects and have to replace SHOW GET statements with the best equivalent.

I have used SHOW GET mostly for ENABLE/DISABLE, but also for refreshment and sometimes to make items invisible. I intend to use the following equivalences. Please comment and advise.

As background, during the conversion the variable that used to be in the GET becomes the ControlSource. The object is given the name xxxMyVar where xxx is the standard prefix according to object type.

1) SHOW GET MyVar becomes xxxMyVar.Refresh()

2) SHOW GET MyVar ENABLE becomes xxxMyVar.Enable = .T.

3) SHOW GET MyVar DISABLE becomes xxxMyVar.Enable = .F.

4) SHOW GET MyVar COLOR c1,c2,c3 becomes xxxMyVar.Visible = .T. and gets flagged for hand tweaking except in the case of two color strings which are recognized as visible and invisible.

I don't know whether to add xxMyVar.Refresh() in cases 2 and 3.

Comments please. TIA.

Alex
Next
Reply
Map
View

Click here to load this message in the networking platform