Welcome to SPN

Register and Join the most happening forum of Sikh community & intellectuals from around the world.

Sign Up Now!
  1.   Become a Supporter    ::   Make a Contribution   
    Target (Recurring Monthly): $200 :: Achieved: $98

How to add a carriage return

Discussion in 'Information Technology' started by azirion, Oct 29, 2005.

  1. azirion

    azirion
    Expand Collapse
    Guest

    When I click a button I need to add some text into a text-box, but if I say
    field.text="whatever" + vbCr + "Something else" ; it doesnt work.
    How can I add a carriage return to a text box?
    Thanks in advance!
     
  2. Loading...


  3. azirion

    azirion
    Expand Collapse
    Guest

    Found it... chr(10) & chr(13)!!
    Thanks anyway...

    "azirion" wrote:

    > When I click a button I need to add some text into a text-box, but if I say
    > field.text="whatever" + vbCr + "Something else" ; it doesnt work.
    > How can I add a carriage return to a text box?
    > Thanks in advance!
     
  4. Van T. Dinh

    Van T. Dinh
    Expand Collapse
    Guest

    .... or vbCrLf.

    --
    HTH
    Van T. Dinh
    MVP (Access)



    "azirion" <azirion@discussions.microsoft.com> wrote in message
    news:EF7C2AC4-936E-42F0-BF4C-DC811F4D0848@microsoft.com...
    > Found it... chr(10) & chr(13)!!
    > Thanks anyway...
    >
    > "azirion" wrote:
    >
    >> When I click a button I need to add some text into a text-box, but if I
    >> say
    >> field.text="whatever" + vbCr + "Something else" ; it doesnt work.
    >> How can I add a carriage return to a text box?
    >> Thanks in advance!
     
  5. Rick Brandt

    Rick Brandt
    Expand Collapse
    Guest

    azirion wrote:
    > Found it... chr(10) & chr(13)!!
    > Thanks anyway...


    Actually you have to reverse that order or it won't work.

    --
    I don't check the Email account attached
    to this message. Send instead to...
    RBrandt at Hunter dot com
     
Since you're here... we have a small favor to ask...

More people are visiting & reading SPN than ever but far fewer are paying to sustain it. Advertising revenues across the online media have fallen fast. So you can see why we need to ask for your help. Donating to SPN's is vote for free speech, for diversity of opinions, for the right of the people to stand up to religious bigotry. Without any affiliation to any organization, this constant struggle takes a lot of hard work to sustain as we entirely depend on the contributions of our esteemed writers/readers. We do it because we believe our perspective matters – because it might well be your perspective, too... Fund our efforts and together we can keep the world informed about the real Sikh Sikhi Sikhism. If everyone who writes or reads our content, who likes it, helps us to pay for it, our future would be much more secure. Every Contribution Matters, Contribute Generously!

    Become a Supporter      ::     Make a Contribution     



Share This Page