Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Macro substitution and Picture file
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00637840
Message ID:
00637937
Vues:
13
Hi, Steve!

There is an additional hint to make the code a little bit more compact and prevent from using the slow macro operator using the name substitution instead:
   FOR i = 1 to 14
     lcI = alltrim(str(i))
     STORE IIF( recno()=i, PhoneBMP, NoPhoneBMP ) TO ( ="THIS.ImgPhone"+ m.lcI +".Picture" )
     STORE 14 TO ( "THIS.ImgPhone"+ m.lcI +".Height" )
     STORE 16 TO ( "THIS.ImgPhone"+ m.lcI +".Width" )
   ENDFOR
BTW: The code is not tested yet - there may be typing mistakes <vbg>!
SeBaFlu
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform