Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Textboxes and values...
Message
From
23/12/1999 11:52:10
David Fluker
NGIT - Centers For Disease Control
Decatur, Georgia, United States
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00307522
Message ID:
00307973
Views:
26
>maxlength on both textboxes are 0 so its not that ut how could i do this? form2.text1.value = form2.text1.text + form1.text1.text
>.......should this work? is there any syntax errors in that?

David,
MaxLength = 0 just means there is no limit to the length of text you can enter into the box. I think your problem is trailing spaces in text1.

For example:
Text1.Value = 'David '
Text2.Value = 'Fluker '
Text1.Value + Text2.Value = 'David Fluker '
If I put this in Text2.Value, it looks like Text1 has written over Text2 because I cannot see the "Fluker". I can click on Text2 and scroll right to see the rest of the value.

To fix this you need to trim the extra spaces with something like
Text2 = ALLTRIM(Text1) + ALLTRIM(Text2)
or
Text2 = Text1 - Text2

David.
David.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform