|
Apologies for posting this question. I am newly come to coding for Manifold (I usually use MapBasic or ArcObjects/VBA), and I am having some problem with the basics. I realise that I have probably read the solution, but I have had trouble understanding. [sigh. trying a new language is hard]. I've been putting of learning the Manifold way, but Manifold is really too useful not to be able to code it. What I'd like to code is a loop that cycles through all the records in a drawing's table. Each time it gets to a new record I'd like to put one of the record's field data (such as the ID) into a variable. For instance, say I have a planning zone layer (called Zones) with the following records: ID, Zone 1, Residential 2, Business 3, Residential ... n, Open space Then the code in MapBasic would look like: Fetch first from Zones Do while not EOT(Zones) iCounter = iCounter + 1 Select * from Zones where rowid = iCounter into TempTable myID = TempTable.ID 'Do something with myID Fetch next from Zones Loop The bit I am having trouble with in Manifold VB script is the bolded part: myID = TempTable.ID Thanks in advance for your help, Julie of Leichhardt Council
|