String editing with vbscript

Results 1 to 2 of 2

Thread: String editing with vbscript

  1. #1
    Alex Barangan Guest

    Default String editing with vbscript

    Hi, well this may sound like a lame question but i looked everywhere for a solution. I&#039m trying to verify the characters of a string using a For..Next loop -- by checking each char by comparing it to the ascii # representations. Anyways, how do I step through the string. Is it possible to use []&#039s and treat it like an array like in PHP or C?

  2. #2
    jason Guest

    Default RE: String editing with vbscript

    you can&#039t step through it directly, especially with [] (vb uses ())<BR><BR>there&#039s a tutorial on this on in the VBScript section, called &#039the lowdown on instr and instrRev<BR><BR>Personally, I use JScript for this, using a for loop and charAt()<BR><BR>jason

Posting Permissions

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