Hi all,
                        From the responses I received, I think I have not
been precise enough in my question.
                        What I actually need to do is to select a certain
number of objects. The number of objects is defined in run time:
                        
                        INbObj = Ubound(goCelluleFille)

                        sSelection = "Select * From " + gsGridUnderN + "
Where obj Contains Entire " + goCelluleModifiee
                                For j = 1 to iNbObj
                                        sSelection = sSelection + " OR obj
Contains Entire " + goCelluleFille(j)
                                Next

                                sSelection = sSelection + " Into Fusion"

                                Print sSelection
                                Run Command sSelection

                        So you understand that I need to use the Run command
call.

                        Serge


                                ----- Original Message ----- 
                                From: Serge Bedard <[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]> >
                                To: <[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]> >
                                Sent: Wednesday, July 19, 2000 06:51 PM
                                Subject: MI Run command and object variable


                                > Hi all,
                                > In the following code, I use an object
variable
                                > (goObject) in a run command call :
                                > 
                                > sSelection = "Select * From Table Where
obj Contains
                                > Entire " + goObject
                                > Print sSelection
                                > Run command sSelection
                                > 
                                > It returns the following print message :
                                > 
                                > Select * From Table Where obj Contains
Entire Region
                                > 
                                > And the following error message :
                                > 
                                > Variable or field Region not defined.
                                > 
                                > 
                                > How can I get this object variable to be
properly
                                > converted in the Run command call?
                                > 
                                > 
                                > 
                                > Thanks in advance
                                > 
                                > Serge Bedard
                                > Quality Assurance dept.
                                > GeoCom TMS
                                > 
                                >
----------------------------------------------------------------------
                                > To unsubscribe from this list, send e-mail
to [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>  and put
                                > "unsubscribe MAPINFO-L" in the message
body, or contact [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> 
                                > 
----------------------------------------------------------------------
To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
"unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]

Reply via email to