[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index] [Date Index] [Thread Index]
[SQR-USERS Info] [SQRUG Home Page]

Number of time a char is found in a string



Does SQR have a string function to find the number of times a character is
found in a string? I'm working with comment fields that are up to 2000
chars. I need to find the total returns(linefeeds) so I can determine the
page break. I need to assign #linefeeds the correct value.

ie: if #current-line > #lines_per_param - #linefeeds
       new-page
     end-if
        I looked in the manual and it didn't appear to have anything. Any input
appreciated.

David Dawes Stanley
Lead Programmer Analysis/Web Master
SUNY SICAS Center
http://sicas.suny.edu/
http://www.oneonta.edu/~stanley