Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Please advise on VFP equivalent of SHOW GET
Message
De
16/05/2000 10:28:54
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Please advise on VFP equivalent of SHOW GET
Divers
Thread ID:
00369934
Message ID:
00369934
Vues:
108
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform