Ampersand variables should contain executable code and dotted variables should contain values.
Ampersand Var:   Set var vCmd text = 'Pause 2 using'
Used like:  &vCmd 'Hello World'

Dotted Var:  Set Var vVal text = 'Hello World'
Used Like: Pause 2 using .vVal








----- Original Message ----- From: "Michael J. Sinclair" <[email protected]>
To: "RBASE-L Mailing List" <[email protected]>
Sent: Sunday, July 05, 2009 4:36 PM
Subject: [RBASE-L] - RE: Rbase Editor Trace Problem


Hi all,
I have been using the "PROPERTY ImageComponentID LoadImageFromFile .vFileName". I have no trouble when I use a dotted variable for the .vfilename, but if I try to use an &variable, the code seems to ignore the & and treat it like a dotted variable.

When the file spec of the vFileName is constant, I can just use a dotted variable or even text surrounded by quotes. However, there are time when I would like to let the code choose the file spec. For example, assume I would like to use .vdoc1 or .vdoc2 or .vdoc3 to be displayed by the Variable Image object, where vdoc1 = 'C:\docs\doc1.jpg', vdoc2 = 'C:\docs\doc2.jpg' and vdoc3 = 'C:\docs\doc3.jpg'. What I thought should work would be this....

SET V vmydoc = '.vdoc2'
PROPERTY ImageComponentID LoadImageFromFile &vmydoc (I would like to display doc2.jpg)

But that does not seem to work.
Is there a way to make this work?
Mike


--------------------------------------------------------------------------------


Hi all,

I have been using the "PROPERTY ImageComponentID LoadImageFromFile .vFileName". I have no trouble when I use a dotted variable for the .vfilename, but if I try to use an &variable, the code seems to ignore the & and treat it like a dotted variable.



When the file spec of the vFileName is constant, I can just use a dotted variable or even text surrounded by quotes. However, there are time when I would like to let the code choose the file spec. For example, assume I would like to use .vdoc1 or .vdoc2 or .vdoc3 to be displayed by the Variable Image object, where vdoc1 = 'C:\docs\doc1.jpg', vdoc2 = 'C:\docs\doc2.jpg' and vdoc3 = 'C:\docs\doc3.jpg'. What I thought should work would be this....



SET V vmydoc = '.vdoc2'

PROPERTY ImageComponentID LoadImageFromFile &vmydoc (I would like to display doc2.jpg)



But that does not seem to work.

Is there a way to make this work?

Mike


Reply via email to