PDA

View Full Version : Comment line in Part Files



donframbach
06-10-2002, 01:24 AM
I've been unable to figure out the correct syntax to print a label and a variable together in the comment line.

I've tried what seems obvious to me:
print "variable=";&variable

I can display the variable as:
'&variable

and the comment as
'comment or
print "comment"

but not both together

clearly I'm doing something wrong.

TIA

Don Frambach

donframbach
06-10-2002, 01:47 AM
OK I figured out a work around
&variable = 1
&textvariable = text

"print &variable &textvariable" returns:
1 text

is there a cleaner way to do this?

Don Frambach

Ted Hall, ShopBot
06-10-2002, 06:35 PM
Hi Don,

I'm wondering if there is a typo in an earlier version of the "Programming Handbook" ?? But, I think the following works the way you want.

&var = 333
PRINT "This is it - ", &var
PAUSE 3

Ted Hall, ShopBot
06-10-2002, 06:36 PM
Ooops, if you didn't notice ... that was a comma instead of a semicolon.

donframbac@aol.com
06-16-2002, 11:23 AM
Thanks. It works just fine.

Don