Syntax to revers text order in textbox

B

Brian

Hi,

What is the syntax for appending last bit of text to the top of a textbox?
Any help is appreciated.

Brian
 
T

Tom Spink

Hi, what exactly is the 'last bit of text'?

--
HTH,
-- Tom Spink, Über Geek

Please respond to the newsgroup,
so all can benefit

"Maybe it's a game called 'Punish the User'"
 
H

Herfried K. Wagner [MVP]

Hello,

Brian said:
What is the syntax for appending last bit of text to the
top of a textbox?

\\\
Me.TextBox1.Text = "Bla" & Me.TextBox1.Text
///

-- or --

\\\
Me.TextBox1.Select(0, 0)
Me.TextBox1.SelectedText = "Bla"
///

HTH,
Herfried K. Wagner
 
C

Cor

Herfried,
I don't understand the logic from the second example.
It works I had no doubt but did want to know why?
I tried it. You select nothing and says the position from that is 0,0 than
you fill that, and it is put in the textbox.

I find it strange, when there is logic, will you tell me that?

Or is it just that there once was an error in the logic and they let it that
way?

Cor
 
H

Herfried K. Wagner [MVP]

Hello,

Cor said:
I don't understand the logic from the second example.
It works I had no doubt but did want to know why?
I tried it. You select nothing and says the position from that is 0,0 than
you fill that, and it is put in the textbox.

I find it strange, when there is logic, will you tell me that?

The 'SelectedText' property sets or gets the selected text in the textbox.

;-)

Regards,
Herfried K. Wagner
 
C

Cor

Herfried,
It could be, that I readed it wrong, I never shall say I do that always
right, but:
MSDN, SelectedText = Gets or sets a value indicating the currently selected
text in the control
What am I reading wrong, and don't say you ain't good in English.
It was almost German that Fergus wrote, I was translating it with some
Germanized words, till I came to "plenty" and that is of course from plein
(and you know Latin or is that molto).
:)
Cor
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top