Subscribe and publish?

Posted by Admin on 19-Dec-2006 09:04

Hello !.

I am making a window form (Update insert and delete database form Customer of Sports200).

I have a problem with it

I can't take the Custnum from Form1(Form UPdate) to Form 2(Form Save).

any body know how to Subscribe and Publish To make it well.

Thanks.

All Replies

Posted by Admin on 02-Oct-2008 09:54

I have to imagine your window, I don't understand because you have 2 frames !

Anyway, I believe that executing from f2 a process in f1 (return custnum) solves the problem.

To use to Publish and subscribe, This is the structure

IN FRAME-1 (maybe in one trigger)

PUBLISH "Customer-Num" (INPUT custum).

IN WINDOW ( initialize )

SUBSCRIBE PROCEDURE C-Num TO "Customer-Num" IN hFrame-2.

IN FRAME-2 (new procedure)

PROCEDURE NewCustomer:

DEFINE INPUT PARAMETER custnum AS DEC.

/* do something*/

END.

I hope this serves you like beginning

JAO

This thread is closed