View Complete Thread | FoxWeb Forum Home
Date:    Msg ID:   
From:    Thread:   
Only now starting to read back over the last few posts, and i thougth that i had to reply to this one.
Do you actually think that there is a difference between:
vPostData = "x_login=" + x_login + "&" + "x_tran_key=" + x_tran_key + "&" + "x_version=" + x_version
vPostData = "x_login=" + x_login + "&x_tran_key=" + x_tran_key + "&x_version=" + x_version
Please let us know.
Sent by Joe Goldsmith on 05/12/2006 05:10:21 PM:
After hours of troubleshooting I finally resolved the previous question about the ampersand next to the variable name. My gateway merchant wants to have an ampersand added to the string to be properly formatted at their end. NO WHERE in the instructions was this noted and I found this out through trial and error, most error. The correct string should have been:
vPostData = "x_login=" + x_login + "&" + "x_tran_key=" + x_tran_key 
So, thanks for your help as you led me to the correct path.
Sent by Joe Goldsmith on 05/12/2006 11:29:39 AM:
Thanks for the rapid response. I very much appreciate you taking the time to help. I have read your response below and it is very clear except for the ampersand within the variable name starting at the second position such as, "&x_tran_key" Why is this needed? You further help is appreciated.
Sent by FoxWeb Support on 05/12/2006 07:37:28 AM:
In VB the ampersand is used to concatenate strings.  The following is the equivalent FoxPro code:

vPostData = "x_login=" + x_login + "&x_tran_key=" + x_tran_key ;

            + "&x_version=" + x_version +......

FoxWeb Support Team email

Sent by Joe Goldsmith on 05/11/2006 08:39:49 PM:
I have the following ASP string that I need to convert to a delimited string.
vPostData = "x_login=" & x_login & "&x_tran_key=" & x_tran_key & "&x_version=" & x_version &......
This is not a delimited string I am used to where similar values are in columns. In the example above the variable and the value both are in the same row. "x_login=" is that var and x_login is the value holder.
Since I know little about ASP, can someone show me how to convert the above to a delimited string where the value comes from a Fox variable please? Much appreciated.