Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Cannot Access Selected Table & VarRead equivilant
Message
 
À
02/07/1998 17:57:38
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00113920
Message ID:
00113974
Vues:
16
>Help! We're porting our 2.6 app over to VFP and I'm having two problems. Anyone who can help, PLEASE!
>
>1) I'm getting Cannot Access Selected tables all over the place when I do a "show gets (cWinName)" within our program. I don't understand why... :(

Instead of the 'Show Gets' command, use 'thisform.refresh' to update textboxes on a form.

>2) We have a spell checker that uses varread() to get the name of the variable currently in use, but we cannot use this with forms. Any ideas for a replacement?

Instead of Varread(), use the actual control name: this.name If you need the data source, use this.ControlSource
>
>Thanks!
>
>Please Email responses as well as posting
>Jeff@TeleMagic.com

Jeff, it looks like you're trying to force FPW code into the VFP mold. You need to look at the new functions and commands: Use table buffering instead of scatter/gather, check the available commands like ActiveControl, and ActiveForm, etc. In fact, you may wish to update your spellchecker to Foxspell which is written in VFP and can be compiled right into your code.

Before you simply recompile existing code take a long look at OOP design and make sure you're using the best of the expanded possibilities VFP offers.

HTH
Barbara
Barbara Paltiel, Paltiel Inc.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform