Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Record Out of Range - 2 linked dropdown lists
Message
 
 
To
20/11/1999 14:06:54
Gil Munk
The Scarborough Group, Inc.
Baltimore, Maryland, United States
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00293448
Message ID:
00293569
Views:
19
Gil,

What is the parent form's DataSession? What is the child form's? Are the views in the DS of the child form or the parent form? Are they set to NoDataOnLoad=.t.? I've seen messages in the past about odd problems when child forms are launched from a grid, you might try putting focus to to a control outside the grid and let it handle the child form launch.

I haven't made any decisions about Devcon yet. I should make it to one and maybe both.

>Thanks for the tip, which works fine if I'm in the form and change the First combo box. But to be more specific it's in the during the init when I get the Record out of range error.
>
>Here's the scenerio:
>(sources are views)
>
>1. I instantiate a edit form from double click an item on a grid.
> during the Init of the edit form I requery the source of list 1
> (List 1 controlsource is a column of the view behind the grid.)
>2. Then I requery the source of list 2.
> (List 2 controlsource is a different column of the view behind the grid
> and the rowsource is the row in the view used in list 1 )
>
>First time everything is fine. I save and close the editform.
>
>Second time to this form from another row of the grids (which has few children)
>
>The error occurs during the refresh of list 2.
>From what I can see with debug the ListIndex value is still the value from the previous edit. The listcount is the same from the previous edit. Attempts to programmatically set ListIndex still results in an error.
>
>Do I have to close the two views when I close the form? Will that work? I'll try that but If you see anything obvious that I'm missing let me know if you feel like it.
>
>Thanks again,
>And which Devcon will you be going to Miami or New Orleans?
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform