Sybase NNTP forums - End Of Life (EOL)

The NNTP forums from Sybase - forums.sybase.com - are now closed.

All new questions should be directed to the appropriate forum at the SAP Community Network (SCN).

Individual products have links to the respective forums on SCN, or you can go to SCN and search for your product in the search box (upper right corner) to find your specific developer center.

Create non-visual object dynamically

2 posts in Objects Last posting was on 2002-08-22 13:26:18.0Z
Johnson Posted on 2002-08-22 10:53:52.0Z
Newsgroups: sybase.public.powerbuilder.objects
From: "Johnson" <johnson@mail.ils.com.tw>
Subject: Create non-visual object dynamically
Date: Thu, 22 Aug 2002 18:53:52 +0800
Lines: 29
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
NNTP-Posting-Host: 210.202.165.225
Message-ID: <364_pZpYGxcSCHA.288@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.powerbuilder.objects:1005
Article PK: 713571

Hi,

I want to create a non-visual object dynamically. As mention in Powerbuilder
help, I write scripts in function of another novisual-object like following:

uo_a uo_a_var
string ls_objectname
ls_objectname = "uo_a_desc1"
uo_a_var = CREATE USING ls_objectname

When i run compiled exe file but got a error message:

Cannot find data type uo_a_desc1 at line 286 in function uf_test of object
n_report

Does it need to add "uo_a_desc1" to a PBR file when i create it dynamically?

If no, what is my problem?
If yes, I had tried to do this, but i got a messge at compile time:

Could not find resource file 'test.pbl(uo_a_desc1)', Continue?

Anybody can help me, thanks.

Best Regards

Johnson


Michael Chernin Posted on 2002-08-22 13:26:18.0Z
Newsgroups: sybase.public.powerbuilder.objects
Reply-To: "Michael Chernin" <michaelc@city.kitchener.on.ca>
From: "Michael Chernin" <michaelc@city.kitchener.on.ca>
Subject: Re: Create non-visual object dynamically
Date: Thu, 22 Aug 2002 09:26:18 -0400
Lines: 39
Organization: City Of Kitchener, Ontario, Canada
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4133.2400
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
NNTP-Posting-Host: 155.194.200.20
Message-ID: <364_a7FSPFeSCHA.298@forums.sybase.com>
References: <364_pZpYGxcSCHA.288@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.powerbuilder.objects:1004
Article PK: 713570

Just create the pbd file for your project. In this case you don't need a
resource file.

"Johnson" <johnson@mail.ils.com.tw> wrote in message
news:pZpYGxcSCHA.288@forums.sybase.com...
> Hi,
>
> I want to create a non-visual object dynamically. As mention in
Powerbuilder
> help, I write scripts in function of another novisual-object like
following:
>
> uo_a uo_a_var
> string ls_objectname
> ls_objectname = "uo_a_desc1"
> uo_a_var = CREATE USING ls_objectname
>
> When i run compiled exe file but got a error message:
>
> Cannot find data type uo_a_desc1 at line 286 in function uf_test of object
> n_report
>
> Does it need to add "uo_a_desc1" to a PBR file when i create it
dynamically?
>
> If no, what is my problem?
> If yes, I had tried to do this, but i got a messge at compile time:
>
> Could not find resource file 'test.pbl(uo_a_desc1)', Continue?
>
> Anybody can help me, thanks.
>
> Best Regards
>
> Johnson
>
>