Adding Strings - Please help!

Results 1 to 2 of 2

Thread: Adding Strings - Please help!

  1. #1
    Join Date
    Dec 1969

    Default Adding Strings - Please help!

    How do I concatenate a text string to another? To make it clear, I have a cookie variable whose value keeps changing. How do I store all these values in a field (preferably seperated by commas)?

  2. #2
    Ian Stallings Guest

    Default RE: Adding Strings - Please help!

    You can concatenate strings together and store them in a <BR>variable like so:<BR><BR>strValue1 = Request.Cookies("value1")<BR>strValue2 = Request.Cookies(value2")<BR>strvariable = strValue1 & "," & strValue2<BR><BR><BR>If you want to loop through as it&#039s changing<BR>and add a value to the variable you can use this:<BR><BR>strVariable = strVariable & "," & newValue<BR><BR>&#039 you use the ampersand<BR>&#039 hope this helps :)

Posting Permissions

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