Halty Barrett@GAPINC
04/02/99 09:07 AM
I've got a little problem with some MB code. Can someone tell me why I get
a run time error (cannot convert the data) at this line (denoted with the $$)?
Note that szColumn2Calc is a string expression of a column name.
I know the problem is with the Objects Intersect command. In that command
following the Data clause, how do you refer to a column with a variable
expression?
dim szColumn2Calc as string
dim VX as alias
Select * from Zip_Demos
Set target on
Select * from oNewBufferTable where rowid = 1
VX = "zip_demos."+szColumn2Calc '$$ <-------------------This line.
Objects Intersect into Target
Data vx = Proportion(VX)
Commit Table Zip_Demos
Pack Table Zip_Demos Graphic Data
Thanks,
Halty Barrett
[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]