sx_IsEncrypted

<< Click to Display Table of Contents >>

Navigation:  Apollo API Listing >

sx_IsEncrypted

VB Declaration

Declare Function sx_IsEncrypted Lib "Apollo9.dll"()

(ByVal iFileOrRec as Integer)

As Integer

C Declaration

BOOL FAR PASCAL sx_IsEncrypted

(SHORT iFileOrRec);

Description

Determines whether the current record or file is encrypted.

Parameters

iFileOrRec: If 0 is passed, the return is for the file. If 1 is passed, the return is for the current record.

Return Value

True if the file or record is encrypted.

VB Example

If sx_IsEncrypted(0) Then

sx_SetPassWord "pickwick"

End If

C Example

if (sx_IsEncrypted(0))

sx_SetPassword("pickwick");

See Also

sx_DbfDecrypt, sx_DbfEncrypt, sx_SetPassWord