I need to detect the results of a UserSQL query for further processing. 
I can see in the status bar of the form if 1 or 0 records was returned 
but I can't figure out how to detect that in my code.

In a buttons onHit I do: namesBiz = self.Form.getBizobj('names')
        phonenum = self.Form.phoneTB.Value
        phonenumCheck = namesBiz.checkPhoneNum(phonenum)
        self.Form.requery(dataSource = 'names')

Then:  def checkPhoneNum(self, phonenum) :
        """ Query phone number to see if it is already in the db """
           self.UserSQL = """select * from names
           where phone_num = '%s'""" % phonenum

'names' is not the primary bizObj.  I am using it to work with an 
another table in the db.

Thanks,  Jim
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/[email protected]

Reply via email to