Fatal error: Call to undefined function sc_lookup()

Hi, I’m programming a control with my own fields and I need to use sc_lookup in onValidate event. It retrieve Fatal error: Call to undefined function sc_lookup() and for sc_exec_sql too. Where or how can I use this function? there is a documentation for this case?

Thanks

Re: Fatal error: Call to undefined function sc_lookup()

What type of app are you creating in SC5? Grid, Form, Control … etc?
Not sure what you mean by ‘my own fields’. Do you mean a PHP app outside of SC5?

sc_lookup should be part of the library available from all.

Regards,
Scott.

Re: Fatal error: Call to undefined function sc_lookup()

Yea, I got the same thing when using SC. I gave up. There are better abstraction libraries, IMO.