Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Dynamic Function Creation

165 views
Skip to first unread message

Antony

unread,
Dec 27, 2007, 2:55:28 AM12/27/07
to
Hi everybody,

How to create dynamic function / objects in powerbuilder 10.x.
I create global function using pborca.exe (orca), calling thru a batch
file it is working, but it is taking little time.
Any other commands/way to create dynamic objects.

Thanks in Advance
Antony


Roland Smith [TeamSybase]

unread,
Dec 27, 2007, 8:24:12 AM12/27/07
to
The PBORCA_LibraryCreate function works well directly from PB. You can then
use the AddToLibraryList function to add it to your application.

If you already have a batch program that can create the objects, you could
use my RunAndWait object to run it from your app.

http://www.topwizprogramming.com/freecode_runandwait.html

"Antony" <anto...@hotmail.com> wrote in message
news:47735a70@forums-1-dub...

Jeremy Lakeman

unread,
Jan 9, 2008, 8:15:59 PM1/9/08
to
On Dec 27 2007, 11:24 pm, "Roland Smith [TeamSybase]"

<rsmith_at_trusthss_dot_com> wrote:
> The PBORCA_LibraryCreate function works well directly from PB. You can then
> use the AddToLibraryList function to add it to your application.
>
> If you already have a batch program that can create the objects, you could
> use my RunAndWait object to run it from your app.
>
> http://www.topwizprogramming.com/freecode_runandwait.html
>
> "Antony" <anton...@hotmail.com> wrote in message

>
> news:47735a70@forums-1-dub...
>
>
>
>
>
> > Hi everybody,
>
> >    How to create dynamic function / objects in powerbuilder 10.x.
> >    I create global function using pborca.exe (orca), calling thru a batch
> > file it is working, but it is taking little time.
> >    Any other commands/way to create dynamic objects.
>
> > Thanks in Advance
> > Antony

Instead of adding a function and pbl to your library list you could
compile an object and invoke it via ole.

// compile class into ls_pbl
...

// then execute it
oleobject loo_appl, loo_object
loo_appl=create oleobject
loo_appl.connecttonewobject('PowerBuilder.Application.'+string(il_version))
loo_appl.librarylist=ls_pbl
loo_object = loo_appl.CreateObject(ls_class_name)
loo_object.of_method()

As a bonus you can run code in any installed version of powerbuilder,
with any other pbl's / pbd's in the library list.

0 new messages