I try to assign an array value to a variable but get this error "Unrecognized command ."
Here's the code:
Dim c_1, c_2 as string
Dim row_id as integer
Fetch first from sTable(tablename)
Do while not eot(sTable(tablename))
c_1=sTable(tablename).sColumn(i1)
c_2=sTable(tablename).sColumn(i2)
row_id=sTable(tablename).rowid
'..........
Loop
And another error is "rowid not defined".
Can someone help ligthning me what's wrong with that code?
Regards,
Zery
From what I can gather it looks like you've forgotten to stick quotes
around your "." in the string you are trying to assign. As for the
rowid, you might need to store the table and field as an alias before
trying to assign it. This should help:
Dim c_1, c_2 as string
Dim row_id as integer
Dim colAlias as Alias
Fetch first from sTable(tablename)
Do while not eot(sTable(tablename))
c_1=sTable(tablename) & "." & sColumn(i1)
c_2=sTable(tablename) & "." & sColumn(i2)
colAlias = sTable(tablename) & ".rowID"
row_id = colAlias
'..........
Loop
Hope that helps!
Tom Bacon
GIS Technician
Asset Management South
Tel: 01444 472380
www.mouchel.com
Hi,
Here's the code:
'..........
Loop
Regards,
Zery
--
You received this message because you are subscribed to the
Google Groups "MapInfo-L" group.To post a message to this group, send
email to mapi...@googlegroups.com
To unsubscribe from this group, go to:
http://groups.google.com/group/mapinfo-l/subscribe?hl=en
For more options, information and links to MapInfo resources (searching
archives, feature requests, to visit our Wiki, visit the Welcome page at
http://groups.google.com/group/mapinfo-l?hl=en
The information in this e-mail is confidential and may be legally privileged. It is intended solely for the addressee. Access to this email by anyone else is unauthorised. Any views or opinions expressed in this e-mail may be solely those of the author and are not necessarily those of Mouchel. Mouchel Limited, Registered in England at Export House, Cawsey Way, Woking, Surrey, UK, GU21 6QX Registered No : 1686040
Regards,
Zery