Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Wordwarp
Message
De
18/09/2007 03:25:54
 
 
À
18/09/2007 03:12:22
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01255011
Message ID:
01255014
Vues:
21
The comma is valid after ?, but not in a textbox. Try
THISFORM.TEXT1.Value= "     "+SUBSTR(cName,i,1) + CHR(13)
NB! It's a good habit to never use a chr(13) alone, I suggest that you always use chr(13)+chr(10). A chr(13) alone will work fine on a screen, but if you add a chr(13) alone in a file, some editors will show the line before the chr(13) and the line after, on top of each other. Chr(10) will add a line feed, which is what you really want.

>hi all,
>
>any idea for...syntax error
>THISFORM.TEXT1.Value= " ",SUBSTR(cName,i,1) + CHR(13)&&syntax error
>
>
>cName = "H E L L O"
>FOR i=1 to Len(cName)
>	? "     ",SUBSTR(cName,i,1) + CHR(13)
>      **THISFORM.TEXT1.Value= "     ",SUBSTR(cName,i,1) + CHR(13)&&syntax error
>ENDFOR
>
>thanks
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform