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

[sqr-users] Checking for numeric




Hi:
        This is the first time I am answering a question.  I hope it helps.
I have never used this method, but when I took an SQR class a few months
ago, I asked the teacher how to test if a field is numeric.  This is what he
told me:


        if rtrim($total,'0123456789) = ' '
                let $total = to_number($total)
           end-if

                                        Kathy


_______________________________________________
sqr-users mailing list
sqr-users@sqrug.org
http://www.sqrug.org/mailman/listinfo/sqr-users