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

Convert DataWindowChild to DataWindow

129 views
Skip to first unread message

jurgen_cauwenbergh

unread,
Mar 29, 2004, 6:57:48 AM3/29/04
to
How do I do that ?

I have several dw (external data) which I populate manualy
with my own written code.
This code is contained in a user function, which gets the
datawindow by reference as parameter.

I use the same dw's in a composite report.
Then, for each datawindowchild I do a GetChild(...) and pass
this to the function ... but here's the problem : The
function takes a datawindow as parameter, not a
datawindowchild.

Can someone please help me with this one ?
Thanks,
J.

Scott Morris

unread,
Mar 29, 2004, 8:25:28 AM3/29/04
to
Unfortunately, there is no common ancestor for datawindow, datastore, and
dwc. AFAIK, you need to write a separate function to support the different
objects.

<Jurgen Cauwenbergh> wrote in message
news:40680f38.67...@sybase.com...

Jerry Siegel

unread,
Mar 29, 2004, 11:02:04 AM3/29/04
to
Until you get up to PowerObject <g>. You can at least give the functions the
same name and put 'functional polymorphism' on your resume.

"Scott Morris" <bo...@bogus.com> wrote in message
news:406823c8$1@forums-1-dub...

bede

unread,
Mar 30, 2004, 1:39:21 AM3/30/04
to
Jurgen,

change the argument type of the function. Take PowerObject. Then using
Classname() and TypeOf() you can decide what type of object you're getting
and continue from there.

Ben

PS: ben jij de broer van bruno? :-)

<Jurgen Cauwenbergh> wrote in message
news:40680f38.67...@sybase.com...

jurgen_cauwenbergh

unread,
Mar 30, 2004, 4:09:01 AM3/30/04
to
Thanks to everybody ...

I did a workaround by using the powerobject (apo_dw_dwc) as
parameter and then doing blind dynamic calls like this :

apo_dw_dwc.DYNAMIC modify(...)
apo_dw_dwc.DYNAMIC SetTrans(SQLCA)
apo_dw_dwc.DYNAMIC Retrieve(...)

It works fine like that.
Both objects have so much thing in common, it makes me
wonder why they are not relatives ;)

Hey ben ! Inderdaad ik ben de broer van Bruno.
Nog steeds into PB ... op 't stadhuis ?
Greets,
Jurgen.

bede

unread,
Mar 30, 2004, 4:36:32 AM3/30/04
to
ha, funny!! sinnekloas rules..
inderdaad, nog steeds PB, maar al ruim 4 jaar in het Gentse..
groeten aan el papito!

Ben

<Jurgen Cauwenbergh> wrote in message

news:4069392b.75...@sybase.com...

jurgen_cauwenbergh

unread,
Mar 30, 2004, 5:16:50 AM3/30/04
to
tinternet is toch klein hé :)
Zal zeker de groeten en amuseert u maar in gent
0 new messages