Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Calling a function in a DataWindow

Status
Not open for further replies.

CBass

Technical User
Sep 29, 2003
4
US
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?

Thanks,
Craig
 
Hi,

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 :~)

Regards,

--
PowerObject!
-----------------------------------------
--
PowerObject!
---------------------------------------------------
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top