Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Calling an update procedure - How do I call it to be in add mode? 1

Status
Not open for further replies.

rleiman

Programmer
May 3, 2006
258
US
Hi Everyone,

I have code to call an update procedure using ABC. Can you tell me how to make sure it starts in add mode when it is called?

Thanks.

Emad
 
ABC uses Side-Effect:
GlobalRequest = InsertRecord

see ThisWindow.Init
SELF.Request = GlobalRequest ! Store the incoming request

On the flip side, you'll see GlobalResponse is used to detect an OK or CANCEL

These are the 3 main side effect variables.
Note: When working with EXE/DLL sets, then there should be one set of actual variabls in the base dll, and all other DLLs and the EXE should have them set as EXTERNAL


GlobalRequest BYTE(0),THREAD ! Set when a browse calls a form, to let it know action to perform
GlobalResponse BYTE(0),THREAD ! Set to the response from the form
VCRRequest LONG(0),THREAD ! Set to the request from the VCR buttons


 
Hi Mark,

Thanks.

I will code it tonight.

Truly,
Emad
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top