Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Error: Objects cannot be assigned to Arrays
Message
From
04/08/2006 19:35:36
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
01143017
Message ID:
01143129
Views:
8
>I'm trying to create form containing a LISTBOX. I create and fill an array
>(ext_hist) in an external program and in the LISTBOX Properties I place the following:
>
>column count = =ALEN(ext_hist,2)
>number of elements = =ALEN(ext_hist)
>row source = ext_hist
>row source type = 5-Array
>
>In the FORM'S Init procedure:
> External array ext_hist
> thisform.list1.value=ext_hist(1)
> thisform.list1.numberofelements = alen(ext_hist)
>
>
>As soon as I EXIT the Form's INIT procedure I get error message
> "Objects cannot be assigned to arrays."
>
>
>Why?

What's in the array? If there are object references, you should know that combos and listboxes maintain an internal array of strings (which you can access via .list collection). I figure there's no way to convert object to string. You may store sys(1272, loObj) values into the array, though, or have references to your objects in some other array which will not be copied to the listbox's rowsource.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform