I'm writing code that requires that I be able to store expressions in a
table.  So, for example, let's say I do the following:

' Get the contents of row 1, col 1 from table GARY and
' put them into a variable called sVALUE

fetch first from GARY
sVALUE = GARY.COL1

Let's assume that the cell contains "iSAMPLE = 10"  thus sVALUE would
take on that string value.  Nothing unusual so far.  But, now I would
like to use the string as a precondition in an IF statement.  For
example, say I have an integer variable called iSAMPLE that has been
assigned a specific value.  I want to use the contents of sVALUE to see
if it equals 10.

IF sVALUE THEN X = 2

So if iSAMPLE = 10, then X would equal 2.

Is this possible in MB, and if so, what type of variable would sVALUE
be?

I'm stumped on this one.  Any ideas?

Thanks

GS
---------------------------------------------
Gary S. Spring, Associate Professor
Department of Civil Engineering
University of Missouri-Rolla
Rolla, MO 65409-0030
Phone: 573-341-6286
Fax: 573-341-4729
http://www.umr.edu/~spring/

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