Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Cannot Access Selected Table & VarRead equivilant
Message
 
To
02/07/1998 17:57:38
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00113920
Message ID:
00113974
Views:
17
>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform