Stringbuilder

roarnold

Active Member
Licensed User
Longtime User
Evening,

I am having to place some information on a server via php. So given the amount of variables and not wanting to count the places I thought I could use StringBuilder and convert it to Bytes. Seems that it tells me when I compile that I am either missing "as" or a "(". Below is the code. Could someone help me with what I may be doing wrong.

Example:

Dim bstring
Dim Data() As Byte
Dim sb As StringBuilder
sb.Initialize
waltstring = sb.Append("serialno").Append("chk").Append("comment")

Data = "waltstring".GetBytes("UTF8")




request.InitializePost2("http://cowboy.ath.cx:00/walt/a4response.php?serial=" As String, Data() As Byte)
Log(request)

I originally had "URL5" in place of the actual HTTP string but it gave me the same errors.

Appreciate the help.
Ron
:BangHead:
 

roarnold

Active Member
Licensed User
Longtime User
Erel,

Sorry about the code tags.

I will try the code you left. I was receive a 404 code but got that resolved. Not sure what you mean by missing something in URL. If referring to the "00" I just changed that as it is a secure server is all.

I'll give it a whirl.

Thanks,
R
 
Upvote 0

roarnold

Active Member
Licensed User
Longtime User
Hmm, I have it in the Data. All the data is now getting to the db with exception of the answer to the question that is being asked.

I left another post on that issue about Sub Global variables giving compile errors

Thx Erel,
R
 
Upvote 0
Top