Current Callback Buffer

miles

New Member
I have some standard code that is applied to each buffer on the fill of a prodataset. Currently I set the callbacks to and IP + the buffer number. I then run my standard code passing the buffer number.

Is there anyway that in a after-row-fill callback IP you can identify the buffer just filled?

Miles
 
Nice Try Lee but no cigar

I'm doing that but that's not what I want.

This is all dynamic and it may be dealing with 1 or more buffers.

At the moment I got through each buffer.

hTTbuffer:SET-CALLBACK-PROCEDURE("after-row-fill","adfAfterRowFill" + STRING(iBufferNo,'99'),TARGET-PROCEDURE).

For buffer 1

PROCEDURE adfAfterRowFill01 :
DEF INPUT PARAMETER DATASET-HANDLE hDataSet.
RUN adfAfterRowFill IN TARGET-PROCEDURE (1,DATASET-HANDLE hDataSet BY-REFERENCE).
END PROCEDURE.

Then in adfAfterRowFill

PROCEDURE adfAfterRowFill :
DEF INPUT PARAMETER iBufferNo AS INT NO-UNDO.
DEF INPUT PARAMETER DATASET-HANDLE hDataSet.
hTTbuffer = hDataSet:GET-BUFFER-HANDLE(iBufferNo).

What I'm trying to do is go straight to adfAfterRowFill, but I need to know that buffer is currently being filled to get hTTbuffer.

I could fill by buffer, but then I'll have to dynamically ensure I get the right children of each parent etc.

I'm sending from Windows Live and the peg may reject, but if you reply to peg as well they'll see.

Miles
 
miles said:
I'm sending from Windows Live and the peg may reject, but if you reply to peg as well they'll see.

Miles

Ok.

If nothing comes through soon, I'll forward my reply and your last post together, but like I said I'm not on 10, neither have I done much dynamic programming, so am unlikely to be able to help.

Windows Live problem: Is this the new membership thing you're talking about?

I've not had problems posting to Peg yet, but my Peg membership is on a different email and details to my Peg email account, so I'm waiting to be unsubscribed :mad:.
 
Got an answer from Frank Meulblok (Progress)

Frank said to use the SELF system handle and it works.

No the peg issue is that I'm currently using Windows Live and I can't get it to send a message in test only, so peg rejects it.

I should use my yahoo or gmail.

Thanks for trying Lee.

Miles
 
Back
Top