Solved

Add and move to the end of a string

Posted on 2003-12-01
2
183 Views
Last Modified: 2010-05-01
Hi,

   Maybe this is a stupid question but i have a mental cloud , The problems is:

   I have a text box with a predefined text or not, what i need is to add a text to the text box and move the cursor to the end of this text box to let the user type the rest.

   txtboz1 = "1234567"

   I want to add 8901234 if the user press the key "/" keyascii 47 and let the user put any other text at the end of this one .

  I was trying with the sendkeys command but when i send the text and the "{END}" all the text becomes selected and the cursor is not at the end of the text box.

Any idea?
Thanks a lot
0
Comment
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 19

Accepted Solution

by:
Rimvis earned 25 total points
ID: 9850128
Is this what you want?

    Text1 = Text1 & "yOURtEXT"
    Text1.SelStart = Len(Text1)
    Text1.SetFocus
0
 
LVL 12

Author Comment

by:Alfredo Luis Torres Serrano
ID: 9850178
Yes man thanks a lot
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question