ClearColumn (reset column property values)

Top  Previous  Next

 

ClearColumn, DERIVED

The ClearColumn method checks for a value in the LastColumn property and conditionally sets the column values to 0.

The TakeCompleted method calls the ClearColumn method.

Example:

BrowseEIPManager.TakeCompleted PROCEDURE(BYTE Force)

SaveAns UNSIGNED,AUTO

Id      USHORT,AUTO

 CODE

 SELF.Again = 0

 SELF.ClearColumn

 SaveAns = CHOOSE(Force = 0,Button:Yes,Force)

 IF SELF.Fields.Equal()

   SaveAns = Button:No

 ELSE

   IF ~Force

     SaveAns =  SELF.Errors.Message(Msg:SaveRecord,|

                Button:Yes+Button:No+Button:Cancel,Button:Yes)

   END

 END

! code to handle user input from SaveRecord message

 

See Also:     Column