|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Free Web 2.0 Code Generator! Generate data entry and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
|
|
#1
|
|||
|
|||
|
String compare not working?
Any ideas why this won't work. It runs fine without the strcomp if then condition. Thanks.
<% cn="DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" & server.mappath("nature.mdb") set rstitle = server.createobject("ADODB.Recordset") sql = "nature1query" rstitle.Open sql, cn Response.Write("<title>Car Site - ") titlenumber=0 num1=1 num2=20 while not rstitle.eof titlenumber=titlenumber+1 do while titlenumber >= num1 And titlenumber <= num2 string1 = strcomp(rs("custom1"),"Auto",vbtextcompare) If string1 = 0 Then Response.Write (rstitle("name") & " ") end if titlenumber=titlenumber+1 rstitle.movenext loop rstitle.movenext wend Response.Write("</title>" & vbCr) rstitle.Close Set rstitle = Nothing %> |
|
#2
|
||||
|
||||
|
this is ASP question (vbscript not VB) so post it in the ASP forum... you'll get more answers that way as less ppl view this forum.
|
|
#3
|
|||
|
|||
|
OK, will try the ASP Forum. Thanks.
|
![]() |
| Viewing: ASP Free Forums > Programming > Visual Basic Programming > String compare not working? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|