Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Wordwarp
Message
De
18/09/2007 04:02:43
 
 
À
18/09/2007 03:52:32
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:
01255023
Vues:
11
via this code i can see it all
? " ",SUBSTR(cName,i,1) + CHR(13)

i need to display every 2 minutes(timer), some words at mytext as wordwarp words.

>SUBSTR(cName,i,1) will give you only the first character. Maybe it's better if you give some samples, what do you have and what do you want to see?
>
>>hi,
>>i see only the first charcter at mytext,
>>
>>
>>>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