General information
Category:
Pictures and Image processing
Title:
Why does one work and the other doesn't?
Hello,
I am trying to assign the name of a picture at run time based upon a selection made by the user.
This code works:
nCounter=1
cPicture=sys(5)+curdir()+'RADIOGRAPHY\00000001\000001000006.jpg'
cMacro='thisform.imgPicture'+tran(nCounter)+'.picture="'+cPicture+'"'
&cMacro
This code does not :-(
nCounter=1
cUser=1
cPictureName='radio.r_image'+tran(nCounter)
cPicture=allt(&cPictureName)
cPicture=sys(5)+curdir()+'RADIOGRAPHY\'+padl(cUser,8,'0')+'\'+cPicture
cMacro='thisform.imgPicture'+tran(nCounter)+'.picture="'+cPicture+'"'
&cMacro
Why... Oh Why
Thanks,
-Greg
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only