Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Actual user input into Combo RowSourceType 1
Message
 
 
To
30/01/2008 16:24:25
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Vista
Miscellaneous
Thread ID:
01287292
Message ID:
01287461
Views:
10
>I have a form where the user can enter a search argument.
>I need to be able to store the user-entered value, including any trailing spaces they may enter.
>
>The Combo has Maxlength set to 0. The following tried in Valid().
>I tried first using the simple .Text property but its LEN() seems always to be 37.
>The Help for SelStart says:"Setting SelStart to greater than the text length sets the property to the existing text length." so I thought I could put
This.SelStart = 500
in the code and use the new value of SelStart to get the entered length.
>Unfortuantely, I get the same length value - 37 - which seems to be what can fit in the entry area given the font size/type.
>
>Any ideas... or am I forced into using KeyPress()?
>
>Thanks

Hi Jim,

Did you check Re: Determine Significant Trailing Spaces in controls Thread #1245320 and thread referenced there?
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform