MB: Changing styles
Hi Mappers,
I have a table called STR_NEW (lines and polylines) that has a text
field called "stylenew" containing different pen styles:
Pen(1,1,32768)
Pen (1,2,16736352)
Pen (1,1,32768) and so on...
I need to use code to change each record's object style to
the corresponding pen style from within the field.
I've tried various combinations of the following to no avail:
Sub Main
Dim pen_var As Pen,
newobj As Object
newobj=STR_NEW.obj
pen_var = STR_NEW.stylenew
Alter Object newobj Info OBJ_INFO_PEN,stylenew
End Sub
I know the solution must be simple. I really appreciate it!
Laurence Seeff
Points Business Mapping Ltd.
Israel
----------------------------------------------------------------------
To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
"unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]