Open method: Crypt class

Syntax

Open(ProfileName, Mode)

Description

Use the Open method to open the encryption profile identified by ProfileName. You must open an encryption profile before you can add data to the encryption profile. Your program terminates if you specify an encryption profile that doesn't exist.

Parameters

Parameter Description

ProfileName

Specify the name of the encryption profile you want to access, as a string. You can store the name of the encryption profile in a field, and specify a fieldname.recordname.

Mode

This parameter is optional.

Use this parameter to specify whether the profile is run in test mode or non-test mode. Enter True for test mode; False for non-test mode. The default value for this parameter is False.

When the encryption profile is run in non-test mode, the profile is locked and cannot be modified.

Returns

None.

Example

Local Crypt &cry;

&cry = CreateObject("Crypt");
&bar = QE_CRYPT_WRK.CRYPT_PRFL_ID;
&cry.Open(&bar);
&cry.UpdateData(QE_CRYPT_WRK.DESCRLONG);
QE_CRYPT_WRK.LARGECHAR = &cry.Result;