If you want to match multiple IDs then you'd have to build the SQL select as you would in MapInfo:
Select * from your_table where object_id = n OR object_id = n OR object_id = n
So that means building the SQL as string and then adding on the condition tests based on the size of the array. This should work regardless of the array size:
Dim sqlcmd as string
Dim x, cnt as integer
Dim array_var() as float
sqlcmd = "Select * from Tablename Where "
cnt = UBOUND(array_var)
For x=1 to cnt
sqlcmd = sqlcmd + " col_name = " + array_var(x)
If x <> cnt Then
sqlcmd = sqlcmd + " OR "
End If
Next
sqlcmd = sqlcmd + " into Temp_Tab"
Print sqlcmd
Run command sqlcmd
HTH
Greg Driver
System Administrator
Applications Support
ICT
Surrey Police
NOT PROTECTIVELY MARKED
--
You received this message because you are subscribed to the Google Groups "MapInfo-L" group.
To post to this group, send email to
mapi...@googlegroups.com.
To unsubscribe from this group, send email to
mapinfo-l+...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/mapinfo-l?hl=en.
Information about this E-mail
This email and any files or attachments with it are intended solely for the use of the individual(s) or organisation(s) to whom it is addressed.
It may contain information that is confidential or subject to legal and/or professional privilege.
If you have received this email in error please notify the sender and delete it including any files or attachments from your e-mail account or computer.
Any opinions expressed in this email are those of the individual and not necessarily those of Surrey Police.
Surrey Police monitor incoming and outgoing e-mail.