Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Why does one work and the other doesn't?
Message
De
28/10/2004 18:03:20
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Photos et traitement d'images
Titre:
Why does one work and the other doesn't?
Versions des environnements
Visual FoxPro:
VFP 6 SP3
Divers
Thread ID:
00955582
Message ID:
00955582
Vues:
54
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform