>OK, I tried your suggestion as follows:
>In the load portion of the form I put the code:
>OPEN DATABASE stkmktdat
>LOCAL ARRAY gatbls(1)
>LOCAL lnlen
>m.lnlen=ADBOBJECTS(gatbls, "table")
>
>In the listbox Data portion of the properties window I put:
>Number of Elements = 5
>Row Source = gatbls
>Row Source Type = 5 – Array
>
>When I run the form in interactive and in compile mode I get the error message:
>‘gatbls’ is not an array
>
>What am I doing wrong?
The list box can not see the gatbls array because it's declared local. My sample must have confused you, sorry about that. You can create an array property by typing gatbls(1) to the list in the name text box of the New Property window or in the init event of your listbox like this:
OPEN DATABASE stkmktdat
this.AddProperty("paList(1)","")
ADBOBJECTS(this.palist,"TABLE")
this.RowSourceType= 5
this.RowSource = "this.palist"
Now you should see the tables in the database in the listbox.
Dawa Tsering
"Do not let any unwholesome talk come out of your mouths,
but only what is helpful for building others up according to their needs,
that it may benefit those who listen."
- Ephesians 4:29-30 NIV
Dare to Question -- Care to Answer
Time is like water in a sponge, as long as you are willing you can always squeeze some.
--Lu Xun, Father of Modern Chinese Literature