|
-
Oct 30th, 2000, 09:08 AM
#1
Thread Starter
Member
I'm having problems with the following code:
Private Sub Form_Load()
Dim test(5) As Label
Dim a As Integer
Grid.Col = 0
For a = 1 To 10
test(a).LinkTopic = "REUTER|IDN"
test(a).LinkItem = "SE0" & a & "01T=,BID"
test(a).LinkMode = 1
Grid.Row = a
Grid.Text = test(a).Caption
Grid.Rows = a + 1
Next a
End Sub
I get error message 91: "object variable or with block variable not set" on the line reading 'test(a).LinkTopic = "REUTER|IDN"'. I have tried to load test, but it does not work either. What the hell is wrong?
-
Oct 30th, 2000, 09:23 AM
#2
transcendental analytic
The labels you declared there are an array of labels, not a controlarray with labels. It would work if you only set the labels a reference to your labels you have on the form. Another thing you could do is to use the control array directly
Use  
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|