Results 1 to 3 of 3

Thread: RowCount?

  1. #1
    Marty Guest

    Default RowCount?

    Is is possible to define the number of rows in a file, like defining the number of records with &#039RecordCount&#039?

  2. #2
    Join Date
    Dec 1969

    Default Huh?

    records = rows, so I am not sure what you are asking.<BR><BR>Are you asking if you can limit the number of records in a database, such that a user could not enter more than &#039x&#039 records?

  3. #3
    Tony Goodridge Guest

    Default RE: RowCount?

    Are you trying to count the number of lines that are in an existing file?<BR><BR>If so, then you could try the following:-<BR>&#060;%<BR>dim sysFile, txtFile, intLineCount<BR><BR> intLineCount=0<BR> set sysFile=CreateObject("Scripting.FileSystemObject") <BR> set txtFile=sysFile.OpentextFile("C: ony.ace",1,0)<BR> do<BR> txtFile.ReadLine<BR> intLineCount=intLineCount+1<BR> loop until txtFile.AtEndOfStream<BR> txtFile.Close<BR>%&#062;<BR> There are &#060;% =intLineCount %&#062; rows in your file.....<BR>

Posting Permissions

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