f2s_restructure_warning_state¶

Applies to: Oracle, MS SQL, MySql/MariaDB, PostgreSQL Drivers

Syntax

set_attribute f2s_restructure_warning_state of {DriverID} to {variable}
get_attribute f2s_restructure_warning_state of {DriverId} to {variable}

Parameter

Description

DriverID

The ID of the driver for which this applies. In most cases, you should use _f2s_ActiveDriverID.

variable

Boolean variable. If true, the warning message will show. If false the warning message will be supressed. The default is true.

Description

When restructuring a table, i.e. Structure_Start, a warning message will appear to confirm the restructure before it is executed. Setting this attribute to true will show this warning message. Setting this attribute to false will supress the warning message.

Getting this attribute returns a boolean indicating the warning state.

Examples

get_attribute

boolean bWillShowWarning
Get_Attribute f2s_restructure_warning_state of _f2s_ActiveDriverId to bWillShowWarning

set_attribute

Handle hFile

Move customer.File_Number to hFile

//by default the attribute is true.  The warning will show before this line is executed.
Structure_Start hFile _f2s_ActiveDriver
Structure_End hFile

Open Customer
Move customer.File_Number to hFile

//turning the warning off
Set_Attribute f2s_restructure_warning_state of _f2s_ActiveDriverId to False

//the warning will NOT show
Structure_Start hFile _f2s_ActiveDriver
Structure_End hFile

Replaces: Command MERTECH_WARNING_MESSAGE (write only)