Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Chr(13) in a field
Message
From
17/12/2008 15:19:11
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
17/12/2008 14:50:43
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
01368268
Message ID:
01368286
Views:
12
>I am writing a program to execute a list a characters using KEYBOARD and get the list of characters from
>a table that has a 250 character field
>
>I want to enter Chr(13) so KEYBOARD will do a carriage return when it runs into it in the string
>
>doing Alt+10 or Alt+13 when entering the string in the field does not work
>Nor
>does putting 'text is here'+chr(13)+'more text' in the field.
>
>If I make a string in a variable such as 'text is here'+chr(13)+'more text' it understands the carriage return
>
>The table field does not
>
>Any thoughts to help solve this?

You can't do that with a character field because to VFP any ASCII character from 0 to 255 are valid characters as if all were printable. However using an editbox control on form and/or memo field you can simply use [enter] key or its ASCII representation to for chr(13) and chr(10).
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform