|
-
Aug 6th, 2003, 08:48 PM
#1
Thread Starter
Lively Member
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.
-
Aug 6th, 2003, 09:18 PM
#2
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"
-
Aug 7th, 2003, 04:17 AM
#3
Frenzied Member
Why are you wasting memory on declaring a String to hold Chr(34)?
Just do it like this....
VB Code:
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.
-
Aug 7th, 2003, 07:22 AM
#4
Thread Starter
Lively Member
HTML & VB
That worked great. Thanks for the help!!!
Michael
-
Aug 7th, 2003, 01:41 PM
#5
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|