Constant from another spin file?
jmspaggi
Posts: 629
Hi,
Is there a way to refer a constant from another spin file?
Like
Cols is in the CON section of tv_text. But look like it's not public. Is there a way to make it public?
Thanks,
JM
Is there a way to refer a constant from another spin file?
Like
OBJ text : "tv_text_improved2" PUB start text.out(text.cols)
Cols is in the CON section of tv_text. But look like it's not public. Is there a way to make it public?
Thanks,
JM
Comments
You can do this by using the # symbol followed by the constants name
eg ( in your case)
text#cols
this statement says to use the constant in the object text, called cols
regards
Dave M
I was going to duplicate all the constantes [noparse];)[/noparse] That will safe me some time and cut&past issues [noparse];)[/noparse]
Jean-Marc
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Linux? There is worst, but it's more expensive.