3 Replies - 3712 Views - Last Post: 09 June 2010 - 07:53 AM Rate Topic: -----

#1 little_prince41  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 49
  • Joined: 10-August 07

Set position of text in textbox?

Posted 09 June 2010 - 03:13 AM

Hello....

I want to set Set position of text in textbox..

example.
-------------------------------------------------------
set "5" to x=25 in line of Textbox
--------------------------------------------------------
Is it possible?

can you help me, please :helpsmilie:
thanks you

Is This A Good Question/Topic? 0
  • +

Replies To: Set position of text in textbox?

#2 raziel_  Icon User is offline

  • Like a lollipop
  • member icon

Reputation: 464
  • View blog
  • Posts: 4,255
  • Joined: 25-March 09

Re: Set position of text in textbox?

Posted 09 June 2010 - 04:26 AM

uhm what you want to replace 5 with x=25 ? or you want to insert something somewhere in the textbox?
Was This Post Helpful? 0
  • +
  • -

#3 little_prince41  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 49
  • Joined: 10-August 07

Re: Set position of text in textbox?

Posted 09 June 2010 - 07:46 AM

View PostNoBrain, on 09 June 2010 - 03:26 AM, said:

uhm what you want to replace 5 with x=25 ? or you want to insert something somewhere in the textbox?

yes I you want to insert "5" somewhere in the textbox

can you help me, thanks you
Was This Post Helpful? 0
  • +
  • -

#4 CharlieMay  Icon User is offline

  • This space intentionally left blank
  • member icon

Reputation: 1605
  • View blog
  • Posts: 5,162
  • Joined: 25-September 09

Re: Set position of text in textbox?

Posted 09 June 2010 - 07:53 AM

The .text property of the textbox has a .insert method.

.insert(position, string)
position is where you want to start the insert, string is what you want to insert.

remember, the first character in the textbox is at position 0

This post has been edited by CharlieMay: 09 June 2010 - 07:54 AM

Was This Post Helpful? 0
  • +
  • -

Page 1 of 1