
inStr
The variable TB1 contains 0900093009301000<BR>Tried cStr(TB1) to make sure the variable is a string<BR><BR>I get not found from the following script:<BR>if not instr(1, TB1, "09000930") then<BR>response.write "not found"<BR>else<BR>response.write "found"<BR>end if<BR><BR>

Instr returns an integer.
NOT a boolean value.<BR><BR>Try this:<BR>If InStr(1, TB1, "09000930") = 0 Then<BR> Response.Write "not found"<BR>Else<BR> Response.Write "found"<BR>End If<BR><BR>Doug<BR>

Try...
...and actually test for a number, not a boolean.<BR><BR>If inStr(1, TB1, "09000930") = 0 then<BR> response.write "not found"<BR>else<BR> Response.write "found"<BR>end if<BR><BR>Craig.

Deja vu... <eop>

You only cleaned up part of the code...
You capitalized the "r" in Response, but not the rest of the letters.<BR><BR>You lazy, mathfreak (oh, yeah, I saw your hyperbolafreak message in the ASP Advanced forum).<BR><BR>:)

Hehe
I actually got halfway through writing "Response.Write(" on the bottom line and changed it to how I'd written it on the top one.<BR><BR>Oh, and that stuff aint hard if you know the parametric equations. It's just the cartesian (x/y) equations which suck. Btw, found the proper cartesian equation of a circle:<BR>x^2 + y^2 = a^2<BR>Where a is the radius of the circle. It's not as bad as the one I wrote (a crappy contortion of the parametric equations), but it's still more of a ***** to work with than the parametrics :)<BR><BR>Craig.

Uhhh, yup.
>Oh, and that stuff aint hard if you know the parametric <BR>>equations. It's just the cartesian (x/y) equations which suck. <BR>>Btw, found the proper cartesian equation of a circle:<BR>>x^2 + y^2 = a^2<BR>>Where a is the radius of the circle. It's not as bad as the one <BR>>I wrote (a crappy contortion of the parametric equations), but <BR>>it's still more of a ***** to work with than the parametrics :)<BR><BR>Mathfreak.<BR>

Hehehe
Look, if you're ashamed of your maths skills, I'll lower myself to your level and give you some lessons....<BR><BR>:p<BR><BR>Craig.

I'll tell you what...
.. you give me some math lessons to raise me to your level.<BR><BR>AND, I'll give you some ASP lessons to raise you to my level.<BR><BR>Oh, yeah, and I'll throw in some English lessons as well. First thing  capitalise isn't spelled with an "S". <BR><BR>:)

ooh...
"English"? :) I think you mean "American". And I'm not sure that counts as a language. Dialect, possibly. :)<BR><BR>Tsk, tsk  ASP lessons, my arse. SQL, yeah, but not ASP :)<BR><BR>Craig.
Posting Permissions
 You may not post new threads
 You may not post replies
 You may not post attachments
 You may not edit your posts

Forum Rules

