Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Strange Combobox behavior
Message
De
01/03/2000 14:05:22
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Titre:
Strange Combobox behavior
Divers
Thread ID:
00339984
Message ID:
00339984
Vues:
50
Hi All,

I have a combobox class with the following code in the Refresh of the class:
IF PEMSTATUS(ThisForm,"FormState",5)
   This.Enabled=.F.
   IF ThisForm.FormState > 0
      This.Enabled=.T.
   ENDIF
ENDIF
Formstate is a property I use on the Form to determine whether it's being edited or not. Anyway, in one instance, the source is constantly being requeried during an edit. In the Refresh of that instance, I have
IF opgType.Value = 0 OR opgGroup.Value =0
   This.Visible=.F.
   This.Parent.lblBenefitPlan.Visible=.F.
ELSE
   This.Visible=.T.
   This.Parent.lblBenefitPlan.Visible=.T.
ENDIF
DODEFAULT()
When the program hit's the DODEFAULT() after reverting (in which the source table has been requeried again and had no records) I get a record out of range error. Now, there are no table references in any of the code, at the class level and in the instance. And the error highlights the DODEFAULT() but gives no indication WHAT in the default class code is erroring.

Any ideas?
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform