Hello Mark,

Saturday, May 18, 2002, 9:10:00 PM, you wrote:

MW> Hi all

MW> I have a type

MW> Type Category

MW>     catId As Integer

MW>     catName As String

MW>     catDesc As String

MW> End Type

MW> An array of these types 

MW> Dim categories(10) As Category 



MW> I am trying to update type member variables in  a loop

MW> i.e.

MW> categories(count).catId = newCatId

MW> (newCatId is Integer)

MW> however my program stops at the first such statement it comes across, this is 
straight out the help manual - its simple so why doesn't this work.

MW> Any help much appreciated.

MW> Thanks

MW> Mark
If first value of the loop variable is zero (count=0) it will raise
error with "message subscript of of range". MapBasic arrays always
begins from 1.

And which message you see when your program stops?





-- 
Best regards,
Vladimir Lashin
MBBuilder COD mailto:[EMAIL PROTECTED]
microOLAP Technologies LLC
http://www.microolap.com/gis/  - GIS related products



---------------------------------------------------------------------
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