Is it null or blank???

Results 1 to 2 of 2

Thread: Is it null or blank???

  1. #1

    Default Is it null or blank???

    Hi guys,<BR>Using the following code, what is the correct way of knowing whether or not the value is null or blank.<BR><BR>This is what I have but it doesnt appear to be right.<BR><BR>DIM sMyString: sMyString = request.form("mail")<BR>&#039;Get ARRAY<BR>DIM aMyArray : aMyArray = Split(sMyString,",")<BR>DIM intCounter &#039;Just declare the variable<BR>&#039;Arrays start at zero<BR>For intCounter = 0 to UBound(aMyArray)<BR>if isnull(aMyArray(intCounter)) = true then<BR>response.write "theres an empty address" & "&#060;break&#062;"<BR>else<BR>response.write "email is : " & aMyArray(intCounter) & "&#060;break&#062;"<BR>end if<BR>next<BR><BR>Thanks,<BR>John

  2. #2

    Default actually this... what I need.<BR><BR>For intCounter = 0 to UBound(aMyArray)<BR><BR>if aMyArray(intCounter) = "" then <BR>&#039;IF ITS BLANK THEN SKIP IT, AND GO TO THE NEXT ENTRY<BR>else<BR><BR>&#039;IF ITS NOT, SEND EMAIL<BR>&#039;send email in here<BR>end if<BR>next<BR><BR>Im just not sure on the correct syntax.<BR><BR>John

Posting Permissions

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