Scan a string like an array

Results 1 to 2 of 2

Thread: Scan a string like an array

  1. #1
    Kreg Guest

    Default Scan a string like an array

    There&#039s a way to scan a string like and array?<BR><BR>I get a string for an edit box on my web page an I wanna scan each letters.<BR><BR>Another simple question, there&#039s a way to get the case of a letter?? <BR><BR>Thanks

  2. #2
    Steve McDaniel Guest

    Default RE: Scan a string like an array

    You could do this in a loop. Asp has funtionality to select strings from the middle of a string based on the position. I don&#039t know the exact command right off hand and don&#039t have my ASP book handy, but you will have something like this<BR>for x =1 to len(Variable)<BR> a=mid(variable,1,1)<BR> if a=something to test for then<BR> do this<BR> end if<BR>next<BR><BR>I think it is the Mid function or the instr function.

Posting Permissions

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