Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Add - to the result
Message
De
20/04/2011 15:37:41
 
 
À
20/04/2011 15:34:41
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01507956
Message ID:
01507965
Vues:
46
thank you for reply,
how i can use it instead or with NewName=left(m.NewName,4)+right(m.NewName,len(m.NewName)-4)

>>hi all
>>
>>i try this code below it work, but i need to add - to the result..
>>132002 i need to add 13-2002
>
>How about
>
>myVar = STUFF(someExpression,3,0,"-")
>><pre>
>>gnDbcnumber=ADIR(MyAllFiles,"d:\picture2002\*.*")
>>   FOR i = 1 TO m.gnDbcnumber  && Loop for number of databases
>>     lcOK = "d:\picture2002\"+MyAllFiles(m.i,1)
>>       NewName=CHRTRAN(m.lcok,"ÇÈ Ê Ë Ì Í Î Ï Ð Ñ Ò Ó Ô Õ Ö Ø Ù Ú Û Ý Þ ß á ã ä å æ í É Â Ä ì Æ Ã Á","")
>>      NewName=""+left(m.NewName,4)+right(m.NewName,len(m.NewName)-4)
>>      Rename (M.lcOK) to (m.NewName) 
>>  ENDFOR
>>
>>thanks
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform