Results 1 to 5 of 5

Thread: HTML & VB6 Question **SOLVED**

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Apr 2003
    Location
    Florida
    Posts
    104

    HTML & VB6 Question **SOLVED**

    I am trying to get this HTML:

    <form action="https://www.paypal.com/cgi-bin/webscr" method="post">

    into a text box with the proper formatting.


    Private Sub Command3_Click()

    Text9.Text = "<form action=" & "https://www.paypal.com/cgi-bin/webscr" & "method=" & "post" & ">"

    End Sub


    I cannot get "https://www.paypal.com/cgi-bin/webscr" and

    "post" to correctly format using the " "

    Thanks for any help.
    Last edited by rnm89; Aug 7th, 2003 at 07:24 AM.

  2. #2
    PowerPoster Static's Avatar
    Join Date
    Oct 2000
    Location
    Rochester, NY
    Posts
    9,390
    dim qt as string
    qt = chr$(34)

    Text9.Text = "<form action=" & qt & "https://www.paypal.com/cgi-bin/webscr" & qt & " method=" & qt & "post" & qt & ">"

    or

    Text9.Text = "<form action=" & """https://www.paypal.com/cgi-bin/webscr""" & " method=" & """post""" & ">"
    JPnyc rocks!! (Just ask him!)
    If u have your answer please go to the thread tools and click "Mark Thread Resolved"

  3. #3
    Frenzied Member Spajeoly's Avatar
    Join Date
    Mar 2003
    Location
    Utah
    Posts
    1,068
    Why are you wasting memory on declaring a String to hold Chr(34)?

    Just do it like this....

    VB Code:
    1. Text1.Text = "<form action=" & Chr(34) & "https://www.paypal.com/cgi-bin/webscr" & Chr(34) & "method=" & Chr(34) & "post" & Chr(34) & ">"

    Remember, this is VB, every little bit helps when speeding it up.

  4. #4

    Thread Starter
    Lively Member
    Join Date
    Apr 2003
    Location
    Florida
    Posts
    104

    HTML & VB

    That worked great. Thanks for the help!!!

    Michael

  5. #5
    PowerPoster Static's Avatar
    Join Date
    Oct 2000
    Location
    Rochester, NY
    Posts
    9,390
    Spajeoly - because...if you have to use it alot

    its easier to type qt

    (and somehow I doubt he'll have memory issues)
    JPnyc rocks!! (Just ask him!)
    If u have your answer please go to the thread tools and click "Mark Thread Resolved"

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