Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Len()
Message
De
29/01/2015 09:43:11
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Re: Len()
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01614567
Message ID:
01614592
Vues:
86
>Here's the follow up to my previous enquiry
>I want to define the width of my temp window to match the longest sentence in this sample 3 line message
>In this case for example I need the code query to produce the number 31
>
>mes = 'I need the greatest line length'+chr(13)+chr(10)+'Of this 3 line message'+chr(13)+chr(10)+'any suggestions??'
>
>then I can use that length to define the width of the window that will open.
>(I hope i'm not regressing your coding experiences too far back.)
>

The easiest way to break up a multi-line string is with ALINES(), which puts each lines into an array element.

Tamar
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform