Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Len()
Message
From
29/01/2015 09:43:11
 
 
To
28/01/2015 23:19:47
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Re: Len()
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01614567
Message ID:
01614592
Views:
87
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform