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.

User Object Functions

10 posts in Objects Last posting was on 2004-01-06 15:09:42.0Z
rafal Posted on 2003-12-22 12:05:53.0Z
From: "rafal" <ralf@cursor.pl>
Newsgroups: sybase.public.powerbuilder.objects
Organization: 217.153.87.35
X-Newsreader: AspNNTP 1.50 (Tri Hoang)
Subject: User Object Functions
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: transinc-win02.netoptex.com
X-Original-NNTP-Posting-Host: transinc-win02.netoptex.com
Message-ID: <3fe6de21$1@forums-1-dub>
Date: 22 Dec 2003 04:05:53 -0800
X-Trace: forums-1-dub 1072094753 206.169.167.22 (22 Dec 2003 04:05:53 -0800)
X-Original-Trace: 22 Dec 2003 04:05:53 -0800, transinc-win02.netoptex.com
Lines: 24
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:7704
Article PK: 734981

Hi,

Is there any possibility to add functions dynamic in user object (PB8). For
example I want to dynamic create uo after run application and then create
functions for ou based on result from exemplary routine from application.

If I have:
datawindow with columns: operation (sum), parameter1 (1), parameter2(2) in
running application

I want to:
dynamic create ou with function uf_sum(parameter1, parameter2) (returns 3) and
then function will be called from other objects in application.

This means that ou will be created after application run and each time ou will
be looks differently.

Is this possible?

Greetz,
Rafal.

---== Posted via the PFCGuide Web Newsreader ==---
http://www.pfcguide.com/_newsgroups/group_list.asp


"Arnoud Oortwijk" Posted on 2003-12-22 12:13:58.0Z
From: "Arnoud Oortwijk" <arnoud oortwijk>
Newsgroups: sybase.public.powerbuilder.objects
References: <3fe6de21$1@forums-1-dub>
Subject: Re: User Object Functions
Lines: 46
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: tangram.nl
X-Original-NNTP-Posting-Host: tangram.nl
Message-ID: <3fe6e006$1@forums-1-dub>
Date: 22 Dec 2003 04:13:58 -0800
X-Trace: forums-1-dub 1072095238 213.84.194.121 (22 Dec 2003 04:13:58 -0800)
X-Original-Trace: 22 Dec 2003 04:13:58 -0800, tangram.nl
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:7705
Article PK: 734978

I think that the easies solution is to determine the max number of arguments
you want your function to have and overload the function uf_sum( ) on the
userobject.

For Example
uf_sum( arg1, arg2) RETURNS INTEGER
uf_sum( arg1, arg2, arg3) RETURNS INTEGER
uf_sum( arg1, arg2, arg3, arg4) RETURNS INTEGER

Or use an array as argument instead of separate values

HTH

Arnoud


"rafal" <ralf@cursor.pl> schreef in bericht news:3fe6de21$1@forums-1-dub...

> Hi,
>
> Is there any possibility to add functions dynamic in user object (PB8).
For
> example I want to dynamic create uo after run application and then create
> functions for ou based on result from exemplary routine from application.
>
> If I have:
> datawindow with columns: operation (sum), parameter1 (1), parameter2(2) in
> running application
>
> I want to:
> dynamic create ou with function uf_sum(parameter1, parameter2) (returns 3)
and
> then function will be called from other objects in application.
>
> This means that ou will be created after application run and each time ou
will
> be looks differently.
>
> Is this possible?
>
> Greetz,
> Rafal.
>
> ---== Posted via the PFCGuide Web Newsreader ==---
> http://www.pfcguide.com/_newsgroups/group_list.asp


rafal Posted on 2003-12-22 13:18:51.0Z
From: "rafal" <ralf@cursor.pl>
Newsgroups: sybase.public.powerbuilder.objects
Organization: 217.153.87.35
References: <3fe6de21$1@forums-1-dub> <3fe6e006$1@forums-1-dub>
X-Newsreader: AspNNTP 1.50 (Tri Hoang)
Subject: Re: User Object Functions
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: transinc-win02.netoptex.com
X-Original-NNTP-Posting-Host: transinc-win02.netoptex.com
Message-ID: <3fe6ef3b$1@forums-1-dub>
Date: 22 Dec 2003 05:18:51 -0800
X-Trace: forums-1-dub 1072099131 206.169.167.22 (22 Dec 2003 05:18:51 -0800)
X-Original-Trace: 22 Dec 2003 05:18:51 -0800, transinc-win02.netoptex.com
Lines: 63
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:7706
Article PK: 734984

Yes, this is an easies solution but what about a functions?

The problem is follow:
1. ou have to be created after app run based on some routine
2. number of functions will be never known until ou will be created
3. number of arguments for each function will be never known until the function
will be created

And it is due to routine from app. Overloading the function resolves arguments
count but number of function stays still not resolved. Any ideas?

Greetz,
Rafal.

On 22 Dec 2003 04:13:58 -0800,
in sybase.public.powerbuilder.objects

Arnoud Oortwijk <arnoud oortwijk> wrote:
>I think that the easies solution is to determine the max number of arguments
>you want your function to have and overload the function uf_sum( ) on the
>userobject.
>
>For Example
>uf_sum( arg1, arg2) RETURNS INTEGER
>uf_sum( arg1, arg2, arg3) RETURNS INTEGER
>uf_sum( arg1, arg2, arg3, arg4) RETURNS INTEGER
>
>Or use an array as argument instead of separate values
>
>HTH
>
>Arnoud
>
>
>"rafal" <ralf@cursor.pl> schreef in bericht news:3fe6de21$1@forums-1-dub...
>> Hi,
>>
>> Is there any possibility to add functions dynamic in user object (PB8).
>For
>> example I want to dynamic create uo after run application and then create
>> functions for ou based on result from exemplary routine from application.
>>
>> If I have:
>> datawindow with columns: operation (sum), parameter1 (1), parameter2(2) in
>> running application
>>
>> I want to:
>> dynamic create ou with function uf_sum(parameter1, parameter2) (returns 3)
>and
>> then function will be called from other objects in application.
>>
>> This means that ou will be created after application run and each time ou
>will
>> be looks differently.
>>
>> Is this possible?
>>
>> Greetz,
>> Rafal.
>>
>> ---== Posted via the PFCGuide Web Newsreader ==---
>> http://www.pfcguide.com/_newsgroups/group_list.asp
>
>


Bruce H Posted on 2003-12-23 13:04:29.0Z
From: "Bruce H" <BruceH@nospam.com>
Newsgroups: sybase.public.powerbuilder.objects
References: <3fe6de21$1@forums-1-dub> <3fe6e006$1@forums-1-dub> <3fe6ef3b$1@forums-1-dub>
Subject: Re: User Object Functions
Lines: 89
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
X-Original-NNTP-Posting-Host: 81.240.252.164
Message-ID: <3fe83f36$1@forums-2-dub>
X-Original-Trace: 23 Dec 2003 05:12:22 -0800, 81.240.252.164
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 23 Dec 2003 04:51:27 -0800, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 23 Dec 2003 05:04:29 -0800
X-Trace: forums-1-dub 1072184669 10.22.108.75 (23 Dec 2003 05:04:29 -0800)
X-Original-Trace: 23 Dec 2003 05:04:29 -0800, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:7707
Article PK: 734979

Din't Arnoud mention it:

uf_sum(arg[]) Returns Integer

In function:
For li_i = 1 To UpperBound(arg)
li_total += arg[li_i]
Next li_i

Return li_total


Or do you mean something else?

"rafal" <ralf@cursor.pl> wrote in message news:3fe6ef3b$1@forums-1-dub...
> Yes, this is an easies solution but what about a functions?
>
> The problem is follow:
> 1. ou have to be created after app run based on some routine
> 2. number of functions will be never known until ou will be created
> 3. number of arguments for each function will be never known until the
function
> will be created
>
> And it is due to routine from app. Overloading the function resolves
arguments
> count but number of function stays still not resolved. Any ideas?
>
> Greetz,
> Rafal.
>
> On 22 Dec 2003 04:13:58 -0800,
> in sybase.public.powerbuilder.objects
> Arnoud Oortwijk <arnoud oortwijk> wrote:
> >I think that the easies solution is to determine the max number of
arguments
> >you want your function to have and overload the function uf_sum( ) on the
> >userobject.
> >
> >For Example
> >uf_sum( arg1, arg2) RETURNS INTEGER
> >uf_sum( arg1, arg2, arg3) RETURNS INTEGER
> >uf_sum( arg1, arg2, arg3, arg4) RETURNS INTEGER
> >
> >Or use an array as argument instead of separate values
> >
> >HTH
> >
> >Arnoud
> >
> >
> >"rafal" <ralf@cursor.pl> schreef in bericht
news:3fe6de21$1@forums-1-dub...
> >> Hi,
> >>
> >> Is there any possibility to add functions dynamic in user object (PB8).
> >For
> >> example I want to dynamic create uo after run application and then
create
> >> functions for ou based on result from exemplary routine from
application.
> >>
> >> If I have:
> >> datawindow with columns: operation (sum), parameter1 (1), parameter2(2)
in
> >> running application
> >>
> >> I want to:
> >> dynamic create ou with function uf_sum(parameter1, parameter2) (returns
3)
> >and
> >> then function will be called from other objects in application.
> >>
> >> This means that ou will be created after application run and each time
ou
> >will
> >> be looks differently.
> >>
> >> Is this possible?
> >>
> >> Greetz,
> >> Rafal.
> >>
> >> ---== Posted via the PFCGuide Web Newsreader ==---
> >> http://www.pfcguide.com/_newsgroups/group_list.asp
> >
> >


rafal Posted on 2004-01-05 15:26:46.0Z
From: "rafal" <ralf@cursor.pl>
Newsgroups: sybase.public.powerbuilder.objects
Organization: 217.153.87.35
References: <3fe6de21$1@forums-1-dub> <3fe6e006$1@forums-1-dub> <3fe6ef3b$1@forums-1-dub> <3fe83f36$1@forums-2-dub>
X-Newsreader: AspNNTP 1.50 (Takeshi Eto)
Subject: Re: User Object Functions
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Original-NNTP-Posting-Host: 64.79.161.46
Message-ID: <3ff9843f$1@forums-2-dub>
X-Original-Trace: 5 Jan 2004 07:35:27 -0800, 64.79.161.46
Lines: 105
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 5 Jan 2004 07:12:27 -0800, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 5 Jan 2004 07:26:46 -0800
X-Trace: forums-1-dub 1073316406 10.22.108.75 (5 Jan 2004 07:26:46 -0800)
X-Original-Trace: 5 Jan 2004 07:26:46 -0800, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:7717
Article PK: 734994

This solution resolves number of parameters. I have a problem with number of
functions in uo.
If I have a window (and nonvisual uo without any functions) with sle_fname and
property text = 'uf_sum' (by user after app run) then I want to add function for
uo with name sle_fname.text (uf_sum) but if sle_fname.text = 'uf_add' (also by
user) then I want to add function for uo with name sle_fname.text (uf_add).
Result: uo with two functions (uf_sum and uf_add).

What about this?

Greetz,
rafal

On 23 Dec 2003 05:04:29 -0800,
in sybase.public.powerbuilder.objects

Bruce H <BruceH@nospam.com> wrote:
>Din't Arnoud mention it:
>
>uf_sum(arg[]) Returns Integer
>
>In function:
>For li_i = 1 To UpperBound(arg)
> li_total += arg[li_i]
>Next li_i
>
>Return li_total
>
>
>Or do you mean something else?
>
>"rafal" <ralf@cursor.pl> wrote in message news:3fe6ef3b$1@forums-1-dub...
>> Yes, this is an easies solution but what about a functions?
>>
>> The problem is follow:
>> 1. ou have to be created after app run based on some routine
>> 2. number of functions will be never known until ou will be created
>> 3. number of arguments for each function will be never known until the
>function
>> will be created
>>
>> And it is due to routine from app. Overloading the function resolves
>arguments
>> count but number of function stays still not resolved. Any ideas?
>>
>> Greetz,
>> Rafal.
>>
>> On 22 Dec 2003 04:13:58 -0800,
>> in sybase.public.powerbuilder.objects
>> Arnoud Oortwijk <arnoud oortwijk> wrote:
>> >I think that the easies solution is to determine the max number of
>arguments
>> >you want your function to have and overload the function uf_sum( ) on the
>> >userobject.
>> >
>> >For Example
>> >uf_sum( arg1, arg2) RETURNS INTEGER
>> >uf_sum( arg1, arg2, arg3) RETURNS INTEGER
>> >uf_sum( arg1, arg2, arg3, arg4) RETURNS INTEGER
>> >
>> >Or use an array as argument instead of separate values
>> >
>> >HTH
>> >
>> >Arnoud
>> >
>> >
>> >"rafal" <ralf@cursor.pl> schreef in bericht
>news:3fe6de21$1@forums-1-dub...
>> >> Hi,
>> >>
>> >> Is there any possibility to add functions dynamic in user object (PB8).
>> >For
>> >> example I want to dynamic create uo after run application and then
>create
>> >> functions for ou based on result from exemplary routine from
>application.
>> >>
>> >> If I have:
>> >> datawindow with columns: operation (sum), parameter1 (1), parameter2(2)
>in
>> >> running application
>> >>
>> >> I want to:
>> >> dynamic create ou with function uf_sum(parameter1, parameter2) (returns
>3)
>> >and
>> >> then function will be called from other objects in application.
>> >>
>> >> This means that ou will be created after application run and each time
>ou
>> >will
>> >> be looks differently.
>> >>
>> >> Is this possible?
>> >>
>> >> Greetz,
>> >> Rafal.
>> >>
>> >> ---== Posted via the PFCGuide Web Newsreader ==---
>> >> http://www.pfcguide.com/_newsgroups/group_list.asp
>> >
>> >
>
>


"Arnoud Oortwijk" Posted on 2004-01-06 09:26:33.0Z
From: "Arnoud Oortwijk" <arnoud oortwijk>
Newsgroups: sybase.public.powerbuilder.objects
References: <3fe6de21$1@forums-1-dub> <3fe6e006$1@forums-1-dub> <3fe6ef3b$1@forums-1-dub> <3fe83f36$1@forums-2-dub> <3ff9843f$1@forums-2-dub>
Subject: Re: User Object Functions
Lines: 127
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
X-Original-NNTP-Posting-Host: tangram.nl
Message-ID: <3ffa8157@forums-2-dub>
X-Original-Trace: 6 Jan 2004 01:35:19 -0800, tangram.nl
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 6 Jan 2004 01:12:10 -0800, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 6 Jan 2004 01:26:33 -0800
X-Trace: forums-1-dub 1073381193 10.22.108.75 (6 Jan 2004 01:26:33 -0800)
X-Original-Trace: 6 Jan 2004 01:26:33 -0800, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:7720
Article PK: 734998

When do you want this to happen?
- after the application is compiled into an exe
- or do you want to create the source for a UO dynamically that you can
create a class from (import) later

Regards,

Arnoud

"rafal" <ralf@cursor.pl> schreef in bericht news:3ff9843f$1@forums-2-dub...

> This solution resolves number of parameters. I have a problem with number
of
> functions in uo.
> If I have a window (and nonvisual uo without any functions) with sle_fname
and
> property text = 'uf_sum' (by user after app run) then I want to add
function for
> uo with name sle_fname.text (uf_sum) but if sle_fname.text = 'uf_add'
(also by
> user) then I want to add function for uo with name sle_fname.text
(uf_add).
> Result: uo with two functions (uf_sum and uf_add).
>
> What about this?
>
> Greetz,
> rafal
>
> On 23 Dec 2003 05:04:29 -0800,
> in sybase.public.powerbuilder.objects
> Bruce H <BruceH@nospam.com> wrote:
> >Din't Arnoud mention it:
> >
> >uf_sum(arg[]) Returns Integer
> >
> >In function:
> >For li_i = 1 To UpperBound(arg)
> > li_total += arg[li_i]
> >Next li_i
> >
> >Return li_total
> >
> >
> >Or do you mean something else?
> >
> >"rafal" <ralf@cursor.pl> wrote in message news:3fe6ef3b$1@forums-1-dub...
> >> Yes, this is an easies solution but what about a functions?
> >>
> >> The problem is follow:
> >> 1. ou have to be created after app run based on some routine
> >> 2. number of functions will be never known until ou will be created
> >> 3. number of arguments for each function will be never known until the
> >function
> >> will be created
> >>
> >> And it is due to routine from app. Overloading the function resolves
> >arguments
> >> count but number of function stays still not resolved. Any ideas?
> >>
> >> Greetz,
> >> Rafal.
> >>
> >> On 22 Dec 2003 04:13:58 -0800,
> >> in sybase.public.powerbuilder.objects
> >> Arnoud Oortwijk <arnoud oortwijk> wrote:
> >> >I think that the easies solution is to determine the max number of
> >arguments
> >> >you want your function to have and overload the function uf_sum( ) on
the
> >> >userobject.
> >> >
> >> >For Example
> >> >uf_sum( arg1, arg2) RETURNS INTEGER
> >> >uf_sum( arg1, arg2, arg3) RETURNS INTEGER
> >> >uf_sum( arg1, arg2, arg3, arg4) RETURNS INTEGER
> >> >
> >> >Or use an array as argument instead of separate values
> >> >
> >> >HTH
> >> >
> >> >Arnoud
> >> >
> >> >
> >> >"rafal" <ralf@cursor.pl> schreef in bericht
> >news:3fe6de21$1@forums-1-dub...
> >> >> Hi,
> >> >>
> >> >> Is there any possibility to add functions dynamic in user object
(PB8).
> >> >For
> >> >> example I want to dynamic create uo after run application and then
> >create
> >> >> functions for ou based on result from exemplary routine from
> >application.
> >> >>
> >> >> If I have:
> >> >> datawindow with columns: operation (sum), parameter1 (1),
parameter2(2)
> >in
> >> >> running application
> >> >>
> >> >> I want to:
> >> >> dynamic create ou with function uf_sum(parameter1, parameter2)
(returns
> >3)
> >> >and
> >> >> then function will be called from other objects in application.
> >> >>
> >> >> This means that ou will be created after application run and each
time
> >ou
> >> >will
> >> >> be looks differently.
> >> >>
> >> >> Is this possible?
> >> >>
> >> >> Greetz,
> >> >> Rafal.
> >> >>
> >> >> ---== Posted via the PFCGuide Web Newsreader ==---
> >> >> http://www.pfcguide.com/_newsgroups/group_list.asp
> >> >
> >> >
> >
> >


rafal Posted on 2004-01-06 13:58:53.0Z
From: "rafal" <ralf@cursor.pl>
Newsgroups: sybase.public.powerbuilder.objects
Organization: 217.153.87.35
References: <3fe6de21$1@forums-1-dub> <3fe6e006$1@forums-1-dub> <3fe6ef3b$1@forums-1-dub> <3fe83f36$1@forums-2-dub> <3ff9843f$1@forums-2-dub> <3ffa8157@forums-2-dub>
X-Newsreader: AspNNTP 1.50 (Takeshi Eto)
Subject: Re: User Object Functions
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Original-NNTP-Posting-Host: 64.79.161.46
Message-ID: <3ffac12a@forums-2-dub>
X-Original-Trace: 6 Jan 2004 06:07:38 -0800, 64.79.161.46
Lines: 136
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 6 Jan 2004 05:44:28 -0800, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 6 Jan 2004 05:58:53 -0800
X-Trace: forums-1-dub 1073397533 10.22.108.75 (6 Jan 2004 05:58:53 -0800)
X-Original-Trace: 6 Jan 2004 05:58:53 -0800, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:7721
Article PK: 735008

After the application is compiled into an exe, is this possible?

Greetz,
Rafal

On 6 Jan 2004 01:26:33 -0800,
in sybase.public.powerbuilder.objects

Arnoud Oortwijk <arnoud oortwijk> wrote:
>When do you want this to happen?
>- after the application is compiled into an exe
>- or do you want to create the source for a UO dynamically that you can
>create a class from (import) later
>
>Regards,
>
>Arnoud
>
>"rafal" <ralf@cursor.pl> schreef in bericht news:3ff9843f$1@forums-2-dub...
>> This solution resolves number of parameters. I have a problem with number
>of
>> functions in uo.
>> If I have a window (and nonvisual uo without any functions) with sle_fname
>and
>> property text = 'uf_sum' (by user after app run) then I want to add
>function for
>> uo with name sle_fname.text (uf_sum) but if sle_fname.text = 'uf_add'
>(also by
>> user) then I want to add function for uo with name sle_fname.text
>(uf_add).
>> Result: uo with two functions (uf_sum and uf_add).
>>
>> What about this?
>>
>> Greetz,
>> rafal
>>
>> On 23 Dec 2003 05:04:29 -0800,
>> in sybase.public.powerbuilder.objects
>> Bruce H <BruceH@nospam.com> wrote:
>> >Din't Arnoud mention it:
>> >
>> >uf_sum(arg[]) Returns Integer
>> >
>> >In function:
>> >For li_i = 1 To UpperBound(arg)
>> > li_total += arg[li_i]
>> >Next li_i
>> >
>> >Return li_total
>> >
>> >
>> >Or do you mean something else?
>> >
>> >"rafal" <ralf@cursor.pl> wrote in message news:3fe6ef3b$1@forums-1-dub...
>> >> Yes, this is an easies solution but what about a functions?
>> >>
>> >> The problem is follow:
>> >> 1. ou have to be created after app run based on some routine
>> >> 2. number of functions will be never known until ou will be created
>> >> 3. number of arguments for each function will be never known until the
>> >function
>> >> will be created
>> >>
>> >> And it is due to routine from app. Overloading the function resolves
>> >arguments
>> >> count but number of function stays still not resolved. Any ideas?
>> >>
>> >> Greetz,
>> >> Rafal.
>> >>
>> >> On 22 Dec 2003 04:13:58 -0800,
>> >> in sybase.public.powerbuilder.objects
>> >> Arnoud Oortwijk <arnoud oortwijk> wrote:
>> >> >I think that the easies solution is to determine the max number of
>> >arguments
>> >> >you want your function to have and overload the function uf_sum( ) on
>the
>> >> >userobject.
>> >> >
>> >> >For Example
>> >> >uf_sum( arg1, arg2) RETURNS INTEGER
>> >> >uf_sum( arg1, arg2, arg3) RETURNS INTEGER
>> >> >uf_sum( arg1, arg2, arg3, arg4) RETURNS INTEGER
>> >> >
>> >> >Or use an array as argument instead of separate values
>> >> >
>> >> >HTH
>> >> >
>> >> >Arnoud
>> >> >
>> >> >
>> >> >"rafal" <ralf@cursor.pl> schreef in bericht
>> >news:3fe6de21$1@forums-1-dub...
>> >> >> Hi,
>> >> >>
>> >> >> Is there any possibility to add functions dynamic in user object
>(PB8).
>> >> >For
>> >> >> example I want to dynamic create uo after run application and then
>> >create
>> >> >> functions for ou based on result from exemplary routine from
>> >application.
>> >> >>
>> >> >> If I have:
>> >> >> datawindow with columns: operation (sum), parameter1 (1),
>parameter2(2)
>> >in
>> >> >> running application
>> >> >>
>> >> >> I want to:
>> >> >> dynamic create ou with function uf_sum(parameter1, parameter2)
>(returns
>> >3)
>> >> >and
>> >> >> then function will be called from other objects in application.
>> >> >>
>> >> >> This means that ou will be created after application run and each
>time
>> >ou
>> >> >will
>> >> >> be looks differently.
>> >> >>
>> >> >> Is this possible?
>> >> >>
>> >> >> Greetz,
>> >> >> Rafal.
>> >> >>
>> >> >> ---== Posted via the PFCGuide Web Newsreader ==---
>> >> >> http://www.pfcguide.com/_newsgroups/group_list.asp
>> >> >
>> >> >
>> >
>> >
>
>


"Arnoud Oortwijk" Posted on 2004-01-06 14:11:49.0Z
From: "Arnoud Oortwijk" <arnoud oortwijk>
Newsgroups: sybase.public.powerbuilder.objects
References: <3fe6de21$1@forums-1-dub> <3fe6e006$1@forums-1-dub> <3fe6ef3b$1@forums-1-dub> <3fe83f36$1@forums-2-dub> <3ff9843f$1@forums-2-dub> <3ffa8157@forums-2-dub> <3ffac12a@forums-2-dub>
Subject: Re: User Object Functions
Lines: 157
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: tangram.nl
X-Original-NNTP-Posting-Host: tangram.nl
Message-ID: <3ffac225$1@forums-1-dub>
Date: 6 Jan 2004 06:11:49 -0800
X-Trace: forums-1-dub 1073398309 213.84.194.121 (6 Jan 2004 06:11:49 -0800)
X-Original-Trace: 6 Jan 2004 06:11:49 -0800, tangram.nl
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:7722
Article PK: 734997

As far as I know it is not possible to add functions, events etc to a class
once it is compiled.

You'll have to use function arguments to determine which actions are
required.

HTH

Arnoud


"rafal" <ralf@cursor.pl> schreef in bericht news:3ffac12a@forums-2-dub...

>
> After the application is compiled into an exe, is this possible?
>
> Greetz,
> Rafal
>
> On 6 Jan 2004 01:26:33 -0800,
> in sybase.public.powerbuilder.objects
> Arnoud Oortwijk <arnoud oortwijk> wrote:
> >When do you want this to happen?
> >- after the application is compiled into an exe
> >- or do you want to create the source for a UO dynamically that you can
> >create a class from (import) later
> >
> >Regards,
> >
> >Arnoud
> >
> >"rafal" <ralf@cursor.pl> schreef in bericht
news:3ff9843f$1@forums-2-dub...
> >> This solution resolves number of parameters. I have a problem with
number
> >of
> >> functions in uo.
> >> If I have a window (and nonvisual uo without any functions) with
sle_fname
> >and
> >> property text = 'uf_sum' (by user after app run) then I want to add
> >function for
> >> uo with name sle_fname.text (uf_sum) but if sle_fname.text = 'uf_add'
> >(also by
> >> user) then I want to add function for uo with name sle_fname.text
> >(uf_add).
> >> Result: uo with two functions (uf_sum and uf_add).
> >>
> >> What about this?
> >>
> >> Greetz,
> >> rafal
> >>
> >> On 23 Dec 2003 05:04:29 -0800,
> >> in sybase.public.powerbuilder.objects
> >> Bruce H <BruceH@nospam.com> wrote:
> >> >Din't Arnoud mention it:
> >> >
> >> >uf_sum(arg[]) Returns Integer
> >> >
> >> >In function:
> >> >For li_i = 1 To UpperBound(arg)
> >> > li_total += arg[li_i]
> >> >Next li_i
> >> >
> >> >Return li_total
> >> >
> >> >
> >> >Or do you mean something else?
> >> >
> >> >"rafal" <ralf@cursor.pl> wrote in message
news:3fe6ef3b$1@forums-1-dub...
> >> >> Yes, this is an easies solution but what about a functions?
> >> >>
> >> >> The problem is follow:
> >> >> 1. ou have to be created after app run based on some routine
> >> >> 2. number of functions will be never known until ou will be created
> >> >> 3. number of arguments for each function will be never known until
the
> >> >function
> >> >> will be created
> >> >>
> >> >> And it is due to routine from app. Overloading the function resolves
> >> >arguments
> >> >> count but number of function stays still not resolved. Any ideas?
> >> >>
> >> >> Greetz,
> >> >> Rafal.
> >> >>
> >> >> On 22 Dec 2003 04:13:58 -0800,
> >> >> in sybase.public.powerbuilder.objects
> >> >> Arnoud Oortwijk <arnoud oortwijk> wrote:
> >> >> >I think that the easies solution is to determine the max number of
> >> >arguments
> >> >> >you want your function to have and overload the function uf_sum( )
on
> >the
> >> >> >userobject.
> >> >> >
> >> >> >For Example
> >> >> >uf_sum( arg1, arg2) RETURNS INTEGER
> >> >> >uf_sum( arg1, arg2, arg3) RETURNS INTEGER
> >> >> >uf_sum( arg1, arg2, arg3, arg4) RETURNS INTEGER
> >> >> >
> >> >> >Or use an array as argument instead of separate values
> >> >> >
> >> >> >HTH
> >> >> >
> >> >> >Arnoud
> >> >> >
> >> >> >
> >> >> >"rafal" <ralf@cursor.pl> schreef in bericht
> >> >news:3fe6de21$1@forums-1-dub...
> >> >> >> Hi,
> >> >> >>
> >> >> >> Is there any possibility to add functions dynamic in user object
> >(PB8).
> >> >> >For
> >> >> >> example I want to dynamic create uo after run application and
then
> >> >create
> >> >> >> functions for ou based on result from exemplary routine from
> >> >application.
> >> >> >>
> >> >> >> If I have:
> >> >> >> datawindow with columns: operation (sum), parameter1 (1),
> >parameter2(2)
> >> >in
> >> >> >> running application
> >> >> >>
> >> >> >> I want to:
> >> >> >> dynamic create ou with function uf_sum(parameter1, parameter2)
> >(returns
> >> >3)
> >> >> >and
> >> >> >> then function will be called from other objects in application.
> >> >> >>
> >> >> >> This means that ou will be created after application run and each
> >time
> >> >ou
> >> >> >will
> >> >> >> be looks differently.
> >> >> >>
> >> >> >> Is this possible?
> >> >> >>
> >> >> >> Greetz,
> >> >> >> Rafal.
> >> >> >>
> >> >> >> ---== Posted via the PFCGuide Web Newsreader ==---
> >> >> >> http://www.pfcguide.com/_newsgroups/group_list.asp
> >> >> >
> >> >> >
> >> >
> >> >
> >
> >


rafal Posted on 2004-01-06 14:30:56.0Z
From: "rafal" <ralf@cursor.pl>
Newsgroups: sybase.public.powerbuilder.objects
Organization: 217.153.87.35
References: <3fe6de21$1@forums-1-dub> <3fe6e006$1@forums-1-dub> <3fe6ef3b$1@forums-1-dub> <3fe83f36$1@forums-2-dub> <3ff9843f$1@forums-2-dub> <3ffa8157@forums-2-dub> <3ffac12a@forums-2-dub> <3ffac225$1@forums-1-dub>
X-Newsreader: AspNNTP 1.50 (Takeshi Eto)
Subject: Re: User Object Functions
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Original-NNTP-Posting-Host: 64.79.161.46
Message-ID: <3ffac8a9$1@forums-2-dub>
X-Original-Trace: 6 Jan 2004 06:39:37 -0800, 64.79.161.46
Lines: 169
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 6 Jan 2004 06:16:29 -0800, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 6 Jan 2004 06:30:56 -0800
X-Trace: forums-1-dub 1073399456 10.22.108.75 (6 Jan 2004 06:30:56 -0800)
X-Original-Trace: 6 Jan 2004 06:30:56 -0800, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:7723
Article PK: 734996

Thank you for your answer.

And what about "create the source for a UO dynamically that create a class from
(import) later" ? Can you give me an example how to do it ? This solution may
resolve my problem.

Greetz, Rafal

On 6 Jan 2004 06:11:49 -0800,
in sybase.public.powerbuilder.objects

Arnoud Oortwijk <arnoud oortwijk> wrote:
>As far as I know it is not possible to add functions, events etc to a class
>once it is compiled.
>
>You'll have to use function arguments to determine which actions are
>required.
>
>HTH
>
>Arnoud
>
>
>"rafal" <ralf@cursor.pl> schreef in bericht news:3ffac12a@forums-2-dub...
>>
>> After the application is compiled into an exe, is this possible?
>>
>> Greetz,
>> Rafal
>>
>> On 6 Jan 2004 01:26:33 -0800,
>> in sybase.public.powerbuilder.objects
>> Arnoud Oortwijk <arnoud oortwijk> wrote:
>> >When do you want this to happen?
>> >- after the application is compiled into an exe
>> >- or do you want to create the source for a UO dynamically that you can
>> >create a class from (import) later
>> >
>> >Regards,
>> >
>> >Arnoud
>> >
>> >"rafal" <ralf@cursor.pl> schreef in bericht
>news:3ff9843f$1@forums-2-dub...
>> >> This solution resolves number of parameters. I have a problem with
>number
>> >of
>> >> functions in uo.
>> >> If I have a window (and nonvisual uo without any functions) with
>sle_fname
>> >and
>> >> property text = 'uf_sum' (by user after app run) then I want to add
>> >function for
>> >> uo with name sle_fname.text (uf_sum) but if sle_fname.text = 'uf_add'
>> >(also by
>> >> user) then I want to add function for uo with name sle_fname.text
>> >(uf_add).
>> >> Result: uo with two functions (uf_sum and uf_add).
>> >>
>> >> What about this?
>> >>
>> >> Greetz,
>> >> rafal
>> >>
>> >> On 23 Dec 2003 05:04:29 -0800,
>> >> in sybase.public.powerbuilder.objects
>> >> Bruce H <BruceH@nospam.com> wrote:
>> >> >Din't Arnoud mention it:
>> >> >
>> >> >uf_sum(arg[]) Returns Integer
>> >> >
>> >> >In function:
>> >> >For li_i = 1 To UpperBound(arg)
>> >> > li_total += arg[li_i]
>> >> >Next li_i
>> >> >
>> >> >Return li_total
>> >> >
>> >> >
>> >> >Or do you mean something else?
>> >> >
>> >> >"rafal" <ralf@cursor.pl> wrote in message
>news:3fe6ef3b$1@forums-1-dub...
>> >> >> Yes, this is an easies solution but what about a functions?
>> >> >>
>> >> >> The problem is follow:
>> >> >> 1. ou have to be created after app run based on some routine
>> >> >> 2. number of functions will be never known until ou will be created
>> >> >> 3. number of arguments for each function will be never known until
>the
>> >> >function
>> >> >> will be created
>> >> >>
>> >> >> And it is due to routine from app. Overloading the function resolves
>> >> >arguments
>> >> >> count but number of function stays still not resolved. Any ideas?
>> >> >>
>> >> >> Greetz,
>> >> >> Rafal.
>> >> >>
>> >> >> On 22 Dec 2003 04:13:58 -0800,
>> >> >> in sybase.public.powerbuilder.objects
>> >> >> Arnoud Oortwijk <arnoud oortwijk> wrote:
>> >> >> >I think that the easies solution is to determine the max number of
>> >> >arguments
>> >> >> >you want your function to have and overload the function uf_sum( )
>on
>> >the
>> >> >> >userobject.
>> >> >> >
>> >> >> >For Example
>> >> >> >uf_sum( arg1, arg2) RETURNS INTEGER
>> >> >> >uf_sum( arg1, arg2, arg3) RETURNS INTEGER
>> >> >> >uf_sum( arg1, arg2, arg3, arg4) RETURNS INTEGER
>> >> >> >
>> >> >> >Or use an array as argument instead of separate values
>> >> >> >
>> >> >> >HTH
>> >> >> >
>> >> >> >Arnoud
>> >> >> >
>> >> >> >
>> >> >> >"rafal" <ralf@cursor.pl> schreef in bericht
>> >> >news:3fe6de21$1@forums-1-dub...
>> >> >> >> Hi,
>> >> >> >>
>> >> >> >> Is there any possibility to add functions dynamic in user object
>> >(PB8).
>> >> >> >For
>> >> >> >> example I want to dynamic create uo after run application and
>then
>> >> >create
>> >> >> >> functions for ou based on result from exemplary routine from
>> >> >application.
>> >> >> >>
>> >> >> >> If I have:
>> >> >> >> datawindow with columns: operation (sum), parameter1 (1),
>> >parameter2(2)
>> >> >in
>> >> >> >> running application
>> >> >> >>
>> >> >> >> I want to:
>> >> >> >> dynamic create ou with function uf_sum(parameter1, parameter2)
>> >(returns
>> >> >3)
>> >> >> >and
>> >> >> >> then function will be called from other objects in application.
>> >> >> >>
>> >> >> >> This means that ou will be created after application run and each
>> >time
>> >> >ou
>> >> >> >will
>> >> >> >> be looks differently.
>> >> >> >>
>> >> >> >> Is this possible?
>> >> >> >>
>> >> >> >> Greetz,
>> >> >> >> Rafal.
>> >> >> >>
>> >> >> >> ---== Posted via the PFCGuide Web Newsreader ==---
>> >> >> >> http://www.pfcguide.com/_newsgroups/group_list.asp
>> >> >> >
>> >> >> >
>> >> >
>> >> >
>> >
>> >
>
>


"Arnoud Oortwijk" Posted on 2004-01-06 15:09:42.0Z
From: "Arnoud Oortwijk" <arnoud oortwijk>
Newsgroups: sybase.public.powerbuilder.objects
References: <3fe6de21$1@forums-1-dub> <3fe6e006$1@forums-1-dub> <3fe6ef3b$1@forums-1-dub> <3fe83f36$1@forums-2-dub> <3ff9843f$1@forums-2-dub> <3ffa8157@forums-2-dub> <3ffac12a@forums-2-dub> <3ffac225$1@forums-1-dub> <3ffac8a9$1@forums-2-dub>
Subject: Re: User Object Functions
Lines: 199
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
X-Original-NNTP-Posting-Host: tangram.nl
Message-ID: <3ffad1c5@forums-2-dub>
X-Original-Trace: 6 Jan 2004 07:18:29 -0800, tangram.nl
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 6 Jan 2004 06:55:17 -0800, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 6 Jan 2004 07:09:42 -0800
X-Trace: forums-1-dub 1073401782 10.22.108.75 (6 Jan 2004 07:09:42 -0800)
X-Original-Trace: 6 Jan 2004 07:09:42 -0800, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:7724
Article PK: 734999

The idea is to create a text file holding the exported source of an object.
I suggest you look at an example by exporting an object to a file in the
library painter or system tree by right clicking on an object and selecting
export.

You can import your newly created object also in the library painter or
system tree by right clicking on the pbl and selecting import.

This is not extremely easy but certainly do-able

HTH

Arnoud

"rafal" <ralf@cursor.pl> schreef in bericht news:3ffac8a9$1@forums-2-dub...

>
> Thank you for your answer.
>
> And what about "create the source for a UO dynamically that create a class
from
> (import) later" ? Can you give me an example how to do it ? This solution
may
> resolve my problem.
>
> Greetz, Rafal
>
> On 6 Jan 2004 06:11:49 -0800,
> in sybase.public.powerbuilder.objects
> Arnoud Oortwijk <arnoud oortwijk> wrote:
> >As far as I know it is not possible to add functions, events etc to a
class
> >once it is compiled.
> >
> >You'll have to use function arguments to determine which actions are
> >required.
> >
> >HTH
> >
> >Arnoud
> >
> >
> >"rafal" <ralf@cursor.pl> schreef in bericht news:3ffac12a@forums-2-dub...
> >>
> >> After the application is compiled into an exe, is this possible?
> >>
> >> Greetz,
> >> Rafal
> >>
> >> On 6 Jan 2004 01:26:33 -0800,
> >> in sybase.public.powerbuilder.objects
> >> Arnoud Oortwijk <arnoud oortwijk> wrote:
> >> >When do you want this to happen?
> >> >- after the application is compiled into an exe
> >> >- or do you want to create the source for a UO dynamically that you
can
> >> >create a class from (import) later
> >> >
> >> >Regards,
> >> >
> >> >Arnoud
> >> >
> >> >"rafal" <ralf@cursor.pl> schreef in bericht
> >news:3ff9843f$1@forums-2-dub...
> >> >> This solution resolves number of parameters. I have a problem with
> >number
> >> >of
> >> >> functions in uo.
> >> >> If I have a window (and nonvisual uo without any functions) with
> >sle_fname
> >> >and
> >> >> property text = 'uf_sum' (by user after app run) then I want to add
> >> >function for
> >> >> uo with name sle_fname.text (uf_sum) but if sle_fname.text =
'uf_add'
> >> >(also by
> >> >> user) then I want to add function for uo with name sle_fname.text
> >> >(uf_add).
> >> >> Result: uo with two functions (uf_sum and uf_add).
> >> >>
> >> >> What about this?
> >> >>
> >> >> Greetz,
> >> >> rafal
> >> >>
> >> >> On 23 Dec 2003 05:04:29 -0800,
> >> >> in sybase.public.powerbuilder.objects
> >> >> Bruce H <BruceH@nospam.com> wrote:
> >> >> >Din't Arnoud mention it:
> >> >> >
> >> >> >uf_sum(arg[]) Returns Integer
> >> >> >
> >> >> >In function:
> >> >> >For li_i = 1 To UpperBound(arg)
> >> >> > li_total += arg[li_i]
> >> >> >Next li_i
> >> >> >
> >> >> >Return li_total
> >> >> >
> >> >> >
> >> >> >Or do you mean something else?
> >> >> >
> >> >> >"rafal" <ralf@cursor.pl> wrote in message
> >news:3fe6ef3b$1@forums-1-dub...
> >> >> >> Yes, this is an easies solution but what about a functions?
> >> >> >>
> >> >> >> The problem is follow:
> >> >> >> 1. ou have to be created after app run based on some routine
> >> >> >> 2. number of functions will be never known until ou will be
created
> >> >> >> 3. number of arguments for each function will be never known
until
> >the
> >> >> >function
> >> >> >> will be created
> >> >> >>
> >> >> >> And it is due to routine from app. Overloading the function
resolves
> >> >> >arguments
> >> >> >> count but number of function stays still not resolved. Any ideas?
> >> >> >>
> >> >> >> Greetz,
> >> >> >> Rafal.
> >> >> >>
> >> >> >> On 22 Dec 2003 04:13:58 -0800,
> >> >> >> in sybase.public.powerbuilder.objects
> >> >> >> Arnoud Oortwijk <arnoud oortwijk> wrote:
> >> >> >> >I think that the easies solution is to determine the max number
of
> >> >> >arguments
> >> >> >> >you want your function to have and overload the function
uf_sum( )
> >on
> >> >the
> >> >> >> >userobject.
> >> >> >> >
> >> >> >> >For Example
> >> >> >> >uf_sum( arg1, arg2) RETURNS INTEGER
> >> >> >> >uf_sum( arg1, arg2, arg3) RETURNS INTEGER
> >> >> >> >uf_sum( arg1, arg2, arg3, arg4) RETURNS INTEGER
> >> >> >> >
> >> >> >> >Or use an array as argument instead of separate values
> >> >> >> >
> >> >> >> >HTH
> >> >> >> >
> >> >> >> >Arnoud
> >> >> >> >
> >> >> >> >
> >> >> >> >"rafal" <ralf@cursor.pl> schreef in bericht
> >> >> >news:3fe6de21$1@forums-1-dub...
> >> >> >> >> Hi,
> >> >> >> >>
> >> >> >> >> Is there any possibility to add functions dynamic in user
object
> >> >(PB8).
> >> >> >> >For
> >> >> >> >> example I want to dynamic create uo after run application and
> >then
> >> >> >create
> >> >> >> >> functions for ou based on result from exemplary routine from
> >> >> >application.
> >> >> >> >>
> >> >> >> >> If I have:
> >> >> >> >> datawindow with columns: operation (sum), parameter1 (1),
> >> >parameter2(2)
> >> >> >in
> >> >> >> >> running application
> >> >> >> >>
> >> >> >> >> I want to:
> >> >> >> >> dynamic create ou with function uf_sum(parameter1, parameter2)
> >> >(returns
> >> >> >3)
> >> >> >> >and
> >> >> >> >> then function will be called from other objects in
application.
> >> >> >> >>
> >> >> >> >> This means that ou will be created after application run and
each
> >> >time
> >> >> >ou
> >> >> >> >will
> >> >> >> >> be looks differently.
> >> >> >> >>
> >> >> >> >> Is this possible?
> >> >> >> >>
> >> >> >> >> Greetz,
> >> >> >> >> Rafal.
> >> >> >> >>
> >> >> >> >> ---== Posted via the PFCGuide Web Newsreader ==---
> >> >> >> >> http://www.pfcguide.com/_newsgroups/group_list.asp
> >> >> >> >
> >> >> >> >
> >> >> >
> >> >> >
> >> >
> >> >
> >
> >