PDA

View Full Version : To Count Characters


Sintsof
11-30-2002, 11:21 AM
Hello,
I want to count how many character in a record, with vbscript. I learned In javascript record.length.

I want a record which have over 200 character will continue a new page, and which haven't over 200 character won't continue.

Hope you understand me. :rolleyes:

oracleguy
11-30-2002, 10:21 PM
You would use the 'len' command.

So:


dim myRecord
myRecord=rs("data")

If len(myRecord)>200 then
'Continue on next page
Else
'whatever
End If

Sintsof
12-02-2002, 11:12 AM
Thank you oracleguy...


:thumbsup: