Results 1 to 2 of 2

Thread: ***---Multiline Property--***

  1. #1

    Thread Starter
    Lively Member mykg4orce's Avatar
    Join Date
    Oct 2000
    Location
    CANADA
    Posts
    92

    Exclamation

    Hello...
    I have a text field which I am using in a HTML editor program. Now i need to insert tags in the text field just like the real source code. But how do I insert tags in different lines in the text field???

    For example:

    this is what it should look like:
    ----------------------------
    <html>
    <head>
    <title></title>

    <body>

    </body>

    </head>
    </html>

    ----------------------------

    if i say this in a command button:
    text1.text = "<html>"
    text1.text = text1.text & "</html>"

    but then the text field looks like this:
    ---------------------
    <html></html>
    ---------------------

    but i want it to look like this:
    ---------------------
    <html>

    </html>
    ---------------------

    how do i do this?????

  2. #2
    Hyperactive Member
    Join Date
    Jun 2000
    Location
    Gig Harbor, WA; Posts: 89950
    Posts
    360
    Try
    text1.text = "<html>"
    text1.text = text1.text & vbCrLF & "</html>"


    Give that a try, I am not sure if it will fly or not!
    Lee
    Mahalo
    VB6(SP5), VC++, COBOL, Basic, JAVA
    MBA, MCSD, MCSE, A+
    Computer Forensics

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width