Results 1 to 2 of 2

Thread: len

  1. #1
    Crew Guest

    Default len

    Posted this before but the answer still eludes me.<BR>I&#039m trying to use the Len function to count characters on my page<BR>Problem is that I can get the Len to work fine if I force the length of the string to test it but when I insert the record from the database it won&#039t work. There is a record in the database. The len function just doesn&#039t recognize the record as a string (It is a MS Access memo field)<BR>Since variable types are not defined in VBScript do I need to convert the field to a string first ? If so what function do I use?<BR>I&#039ve inserted the code below. <BR>Would appreciate a pointer in the right direction. <BR><BR>&#060;% <BR>Dim LetterCount, mystring <BR>mystring = ContentTextRset("MainContentHTML") <BR>LetterCount = Len(mystring) <BR><BR>If Lettercount &#062; 500 Then <BR><BR>%&#062; <BR>

  2. #2
    Jim W Guest

    Default RE: len

    I don&#039t know if this is any help but &#039cstr()&#039 will convet to string

Posting Permissions

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