I have a DataWindow that uses some data from a db but I was wondering if I can call a function within that datawindow.
So basically I was wondering if instead of using a column object I can call a function from a textbox or something within that?
You can write "Global" functions and use them within a datawindow object just like any other PowerBuilder/ Datawindow functions. However, in earlier versions of PowerBuilder, I noticed that if the programmed-defined global function is too complex, the datawindow was crashing at runtime because it has to execute the function for every situation in the expression. So, you would do well to keep them short and sweet :~)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.