ShowConfirm

Top  Previous  Next

Prototype

 

BoolConfirm:=ShowConfirm(strMessage)

 

Description

 

It shows a dialog window containing a text message and two buttons: "Yes" and  "No".

 

Parameters

 

StrMessage: string that contains the message to show in the dialog window.

 

Returned value

 

BoolConfirm: true or false logical value. If the user selects the "Yes" key, it returns true, otherwise false.

 

Notes

 

None.

 

Example

 

// It opens an image

image:=ImgOpen('c:\images\1.tif',0);

 

//It copies an image rectangle

imageRett:=ImgCopy(image,1,30,20,90);

 

// It executes other operations

 

//It asks for saving the rectangle

If ShowConfirm('Save the changes in 1Rett.tif?')=true then ImgSave(imageRett,'c:\images\1rett.tif');

 

//It deletes the image from memory 

imgDelete(image);