Maximum characters to be used while naming a powerbuilder object

While naming an object in Powerbuilder, the maximum length is 40. Which means if I name datawindow object as d_composite_reporting_yearly_sales_figures, this is invalid and will throw error during runtime. Counting the underscores and characters in the name, they are 42.

For demonstration, lets create a datawindow and name it as d_composite_reporting_yearly_sales_figures. The datawindow will be saved with name and display in the treeview.





Now right click on the object and Select Export.



Observe the name has been trimmed.If datawindow is used in powerscript, check the dataobject name in debug mode.

The 40 character length applies to all objects like window, user objects, structures etc.



No comments:

Post a Comment