Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Why does one work and the other doesn't?
Message
From
28/10/2004 18:03:20
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Pictures and Image processing
Title:
Why does one work and the other doesn't?
Environment versions
Visual FoxPro:
VFP 6 SP3
Miscellaneous
Thread ID:
00955582
Message ID:
00955582
Views:
51
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
Map
View

Click here to load this message in the networking platform