Perhaps the problem is with the name "array".  Could this be a reserved
word?  Try changing the name of your array.

Michael Hanna

-----Original Message-----
From: Mark Williamson [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 16, 2002 11:52 AM
To: [EMAIL PROTECTED]
Subject: MI-L Arrays and assigning values


Hi all

I have a custom type

Type custom
        field1 As ...
        ...
End Type

I then have an array of these types

Dim array(10) As custom

I then do a select on rdbms and then loop through filling 
the array types.

Server stmt Bind Column 1 to    temp, stat

and then try

array(count).field1 = temp

where count is the current row in the result set.

but i get the following error

Cannot assign to array or type variable: array

>From the help files i cant see whats wrong

any ideas??

thanks to everyone who has replied to my questions

Mark


--
Mark Williamson
Heriot-Watt University
[EMAIL PROTECTED]


---------------------------------------------------------------------
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to