dc_updated

This forum is for eXpress++ general support.
Post Reply
Message
Author
Koverhage
Posts: 150
Joined: Mon Feb 01, 2010 8:45 am

dc_updated

#1 Post by Koverhage »

How i can do the check if i use
DCREAD GUI ?
Klaus

Wolfgang Ciriack
Posts: 478
Joined: Wed Jan 27, 2010 10:25 pm
Location: Berlin Germany

Re: dc_updated

#2 Post by Wolfgang Ciriack »

In the codeblock of DCGETOPTIONS CLOSEQUERY MSG, ABORTQUERY MSG, EXITQUERY MSG or QUITQUERY MSG.
_______________________
Best Regards
Wolfgang

Koverhage
Posts: 150
Joined: Mon Feb 01, 2010 8:45 am

Re: dc_updated

#3 Post by Koverhage »

ok, a bit more precise
until now the the user press ok or abort (with mouse or keyboard)
sample dcread gui to lOK
IF lOK
do put data
ELSE
do nothing
ENDIF
This mean "put data" is executed no matter the user change data.
If the data unchanged i would like to set lOK to FALSE. This should prevent write accesses
and speed up my application
Klaus

skiman
Posts: 1183
Joined: Thu Jan 28, 2010 1:22 am
Location: Sijsele, Belgium
Contact:

Re: dc_updated

#4 Post by skiman »

Hi,

Code: Select all

IF lOK
  if DC_GetOrigUpdated( GetList )
    do put data
  endif
ELSE
  do nothing
ENDIF
Best regards,

Chris.
www.aboservice.be

Koverhage
Posts: 150
Joined: Mon Feb 01, 2010 8:45 am

Re: dc_updated

#5 Post by Koverhage »

Hi Chris,

this does not work (here the Getlist is empty after the DCREAD GUI).
Klaus

User avatar
rdonnay
Site Admin
Posts: 4722
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: dc_updated

#6 Post by rdonnay »

Use the SAVE clause:

DCREAD GUI .. SAVE
The eXpress train is coming - and it has more cars.

Koverhage
Posts: 150
Joined: Mon Feb 01, 2010 8:45 am

Re: dc_updated

#7 Post by Koverhage »

That do it, Thanks
Klaus

Post Reply