Mike
You might have to build the property command like this
SET VAR vq = (CVAL('QUOTES'))
SET VAR vmydoc = (.vdoc2)
SET VAR vProperty = +
('PROPERTY ImageComponentID LoadImageFromFile' & .vq + .vmydoc + .vq)
&vProperty
Buddy
________________________________
From: [email protected] on behalf of Michael J. Sinclair
Sent: Sun 7/5/2009 4:36 PM
To: RBASE-L Mailing List
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