On Aug 07, 2006, at 9:16 AM, Robert Poland wrote:
To test a weird response I have created an application. It has 3
edit boxes and one pushbutton.
The pushbutton has this code for mouse down;
//PushButton 1
dim testValue as string= "1.2"
EditField1.seltext=testValue
EditField2.seltext=testValue
EditField3.seltext=testValue
When I run it and press the button it fills the editfield with "1.2".
However if I press the button repeatedly it appends the string
(1.21.21.2, etc.) instead of replacing it.
To me that isn't right.
It's correct.
It's replacing the "selected text" but since there is not the effect
is to append
Just use
EditField1.text=testValue
EditField2.text=testValue
EditField3.text=testValue
Also if I make testValue a double,
dim testValue as double= 1.2
(Logical for a number) I get an error, string expected.
Correct.
Editfields take text, not numbers.
If you want to put a double in to the edit field you need to turn it
into text using FORMAT
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>