Parsing! Split() function

Results 1 to 2 of 2

Thread: Parsing! Split() function

  1. #1
    Join Date
    Dec 1969

    Default Parsing! Split() function

    I need to parse say...<BR>var = one,two,three<BR><BR>array = split(var,",")<BR>array(0) has one<BR>array(1) has two ....<BR>later on in the code i need to compare array(0) and array(1) and array(2) but all var&#039;s do not contain one,two,three it may have one,two only or even one only so my comparison returns subscript out of bounds error.<BR><BR>any idea how to do this...?<BR><BR>Thanks.<BR><BR><BR>

  2. #2
    Join Date
    Dec 1969

    Default RE: Parsing! Split() function

    Maybe use UBound and wrap in a While statement. For example...<BR><BR>While NOT UBound(Array)<BR> Do some code compare<BR> Increment dimension<BR>Wend<BR><BR>Cameron<BR>

Posting Permissions

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