Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Strange Combobox behavior
Message
From
01/03/2000 15:00:38
 
 
To
01/03/2000 14:05:22
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00339984
Message ID:
00340030
Views:
26
>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?

I had a similar issue with a form that contained a grid based upon a view and controlling movement in several tables. When I would refresh the screen it would error on an empty child. Now when in edit mode I disable the navigation grid and that solved the problem.
Previous
Reply
Map
View

Click here to load this message in the networking platform