f2s_license_expiration_message¶

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

Syntax

**There is no get_attribute.  This attribute is write only.**
set_attribute f2s_license_expiration_message 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

String variable to hold the license expiration message. NOTE: this must be done BEFORE login.

Description

Setting this attribute allows you to customize the warning message to be displayed when a temporary license for a driver is close to expiring. Since the license evaluation is done during Login and before any open calls, this command should be called before logging in.

Examples

set_attribute

integer iTime
string sMessage

get_attribute f2s_license_days_remaining to iTime
If (iTime<0) move "Your license has expired." to sMessage
Else If (iTime>0)  move "(SFormat("Your license will expire in %1 days.", iTime))

Set_attribute f2s_license_expiration_message of _f2s_ActiveDriverId to sMessage

Related Attributes

Replaces: Command SET_DRIVER_LICENSE_EXPIRATION_WARNING