Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem with replace statement with string
Message
De
28/10/1998 12:16:58
Bruce Gilmour
Cal-Mour Consultants
Calgary, Alberta, Canada
 
 
À
28/10/1998 09:38:32
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00151527
Message ID:
00151702
Vues:
23
>Hello:
>
>Just having a small problem with syntax ... I have a form that sllows the user to select a drive letter/directory and want to replace the value in the field with this drive letter + what value was previously
>in the field, when I use the following code the field is replaced with the new drive letter only. I want to replace the first three characters in the field only. Any help would be appreciated. Thank you.
>
>
>
>direct = ""
>direct = thisform.text1.value
>direct = getdir("\wincats\sys.dbf\, ", "Directory")
>
>replace upldp with thisform.text1.value + right(allt(upldp),; len(allt(upldp)) - 3)

Everyone elses solutions will probably work but, just as an aside, try removing the semi-colon in from of len and see what happens. HTH
***************************
Bruce Gilmour

"Two things are infinite, the Universe and human stupidity. And I am not sure about the Universe."
- Albert Einstein
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform