How to access tool properties with Powerbuilder
Posted: Mon Feb 12, 2018 9:50 am
Hi! I am having trouble accessing propperties for SeriesBandTool from Powerbuilder.
This code works fine:
But when I try to access the series property:
I get runtime error "Name not found accessing external object property series at line 52 ...."
I have also tried a VB example:
But that results in runtime error "Name not found accessing external object property asSeriesBandTool at line 52 ...."
How can I accomplish this?
Kind regards
Harald
This code works fine:
Code: Select all
integer li_tool
li_tool = this.object.tools.add(23)
this.object.tools.items(li_tool).active = true
Code: Select all
this.object.tools.items(li_tool).series = this.object.series(0)
I have also tried a VB example:
Code: Select all
this.object.tools.items(li_tool).asSeriesBandTool.series = this.object.series(0)
How can I accomplish this?
Kind regards
Harald