Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
No table is open in the current work area
Message
De
16/12/2004 15:17:28
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
No table is open in the current work area
Versions des environnements
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
00969826
Message ID:
00969826
Vues:
71
I am getting this error, i will try to explain what i do to get the error:

I have a grid with two records, when i change the last field of the grid setting to empty and press the '+' key which is captured by the form which have this code:

CASE CHR(nKeyCode) = "+"
NODEFAULT && No permitir que se vean los caracteres en la pantalla
Thisform.cmdCancelar.Click

&& This is the code of the cmdCancelar.Click

With thisform
.cboProcesos.ListIndex = -1
.SetAll("Value","","TextBox")
.SetAll("Value","","CKTextBox")

.grdDatos.RecordSource = "" && <------------- Get error here
.txtTicketNo.SetFocus
.Validticket = .F.
EndWith

I get an error saying

"No table is open in the current work area"

I check the datasession and the table is open in that datasession, the weird thing also is that it empties the first two columns of the current record.

But if i change the focus to other control using the keyboard or mouse i don't get the error.

Can someone help me?
Répondre
Fil
Voir

Click here to load this message in the networking platform