Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Spaces in Memo Fields
Message
 
 
To
11/12/2006 11:54:59
Yh Yau
Ingenuity Microsystems Sdn Bhd
Kuala Lumpur, Malaysia
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01176580
Message ID:
01176582
Views:
8
This message has been marked as the solution to the initial question of the thread.
>I have memo fields created as edit boxes on forms.
>Users have a habit of pressing ENTER key a couple of times upon finishing their entries in this field before realising that to move to another field, pressing Tab is required.
>This results in memo fields storing additional blank lines and prints out in reports.
>How to prevent or eliminate such blank enter keys?
>Thanks in advance.
>Yau
#define CRLF chr(13) + chr(10)

local lcStr
lcStr = thisform.editbox1.value

do while CRLF + CRLF $ m.lcStr

   lcStr = strtran(m.lcStr, CRLF + CRLF, CRLF)
enddo
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform