On 2006-08-07, at 5:16 PM, 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.
That is right (correct) you are inserting the new string where the
cursor (carret) is or if the old text is selected, replace it. But I
think in this case you should use EditField1.text = testValue - then
it clean up the editfield and put your new value on it.
Also if I make testValue a double,
dim testValue as double= 1.2
(Logical for a number) I get an error, string expected.
I am not sure what you mean, if you in this case try to put testValue
to the EditField, yes then you should get that error, try
EditField1.text = str(testvalue) (WRONG: EditField1.Text = testValue)
Could someone point me to an answer for these weird effects?
Tia,
Robert Poland
[EMAIL PROTECTED]
Sven E
_______________________________________________
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>