Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Detecting trailing spaces in textbox control
Message
 
 
À
29/03/2001 23:59:10
Jill Derickson
Software Specialties
Saipan, CNMI
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00489758
Message ID:
00490304
Vues:
11
>Nadya,
>
>>As far as I can judge without actually trying this code, it would not work, if you enter a space, when hit BackSpace or delete (e.g. Number of spaces will be incorrect).
>
>yikes! of course, you're right. back to the drawing board.
>
Basically, it's a little addition to the existing code:
Pseudocode
if keycode=code(delete) or keycode=code(backspace) and .LastSymbolWasSpace
    .NumberOfTralingSpaces=.NumberOfTralingSpaces-1
    .LastSymbolWasSpace=(.NumberOfTralingSpaces>0)
endif


>>BTW, you made a typo in a "reset" word.
>thanks ;-) sometimes my fingers aren't connected to the spelling part of my brain.
>
>> What about initialization this control as space(30) by default?
>what would that do for me?
>
Just thought, may be it will help? :)
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