Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Getting text from a specific line
Message
De
05/02/2016 13:25:02
 
 
À
05/02/2016 12:56:41
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01630920
Message ID:
01630941
Vues:
57
>>>>On a form I have an editbox with a long text, so the text shows as many separate lines. Is it possible to for instance read the text in line 5 programmatically?
>>>AFAIK no,
>>>If you have set Anchor property of this EditBox and resize the form, then you will have different text in 5th line.
>>
>>That's what I thought, also.
>>
>>What I really want, is a function which can split text into separate lines. I want pass two parameters, the text and the number of characters per line, and to have the formatted text returned. Every line, except the last one, should end with chr(13)+chr(10). I don't want words to be split, and I don't want signs, like comma, point, exclamation mark and so on to be moved to the beginning of a new lines. Sounds easy, but I have found it to be much trickier that I thought. Or maybe it's just me who have entered weekend mode too early?
>
>Sounds like a job for SET MEMOWIDTH and MLINE().
>
>Tamar

Cool, seems to work. Somehow I was sure there would be an easy solution. I tried with alines(), didn't think of mline().

Thanks.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform