Login
`
Templates, Tools and Utilities
|
||
Add a comment to an Icetips ArticlePlease add your comments to this article.
Please note that you must provide both a name and a valid email address in order
for us to publish your comment. Comments are moderated and are not visible until they have been approved. Spam is never approved!
Back to article list Search Articles Add Comment Printer friendly Direct link Par2: Using SelStart and SelEnd to select entire field 2006-03-27 -- Kelly Major >When I tab onto a numeric entry field, the entire field is selected (Insert
>Mode).
>
>When I click on it, the cursor assumes a positon within the field.
>
>I want the entire field to be selected when clicking just like it is when
>tabbing
>
>Where CO1:StandardCost is defined as @n9.3
>
>I embed:
>
>?CO1:StandardCost{Prop:SelStart} = 1
>?CO1:StandardCost{Prop:SelEnd} = 9
>
>in CO1:StandardCost's selected embed.
>
>I would think this should work but it doesn't.
Here's what I do..
Alert MouseLeft on the field...
then embed in Control Events->Field1->AlertKey (before generated
code)...
IF KEYCODE() = MouseLeft
SELECT(?,LEN(?{PROP:ScreenText}))
?{PROP:SelStart} = 1
?{PROP:SelEnd} = LEN(?{PROP:ScreenText})
END
Today is November 23, 2024, 3:38 am This article has been viewed 35329 times.
|
|