Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Spaces in Memo Fields
Message
 
 
À
11/12/2006 11:54:59
Yh Yau
Ingenuity Microsystems Sdn Bhd
Kuala Lumpur, Malaisie
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01176580
Message ID:
01176582
Vues:
9
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform