Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Requery/Dimension
Message
 
To
16/03/1999 12:12:16
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00197670
Message ID:
00198383
Views:
20
Paige,
Interesting - I've never set the NumberOfElements value, leaving it at the default value of "0". This shows all available elements. Thanks for the update.

Barbara

>Hello Barbara,
>
>Thanks for the advice. I don't seem to be having a problem loading the array directly from the SQL statement. My ? commands show that the array(scoped to the form) has the proper number of elements with the appropriate data. I did not have time to completely resolved the code last night and I did not see your response until today.
>
>After reading Jim's response I went back to the books - again. On page 129 of Stephen Sawyers's Visual FoxPro Form Designer (Pinnacle Special Report) in the Trap! side bar he talks about setting NUMBEROFELEMENTS property after the array has been Dimensioned and populated. I thought reDimensioning the array would do that 'automatically'. Appearently not! When I ? that property it's value was 1 even though it appears as '=ALEN(ThisForm.Combo2.xListArray' or something close and the Dimension[4,2].
>
>I inserted the command 'ThisForm.Combo2.NUMBEROFELEMENTS=x' and I now see the number of indices available for the table selected in combo1. 'x' = 4 for this table - 4 indexes.
>
>I will try this on the other comboxes letter this week and expirement with some other code. Thank you very much.
>
>Regards,
>
>Paige
Barbara Paltiel, Paltiel Inc.
Previous
Reply
Map
View

Click here to load this message in the networking platform