sx_SetCentury

<< Click to Display Table of Contents >>

Navigation:  Apollo API Listing >

sx_SetCentury

VB Declaration

Declare Sub sx_SetCentury Lib "Apollo9.dll"

(ByVal iValue As Integer)

C Declaration

VOID FAR PASCAL sx_SetCentury

(SHORT iValue);

Description

Indicates whether or not the two digits of the year designating century are to be returned by sx_GetDateString as part of a date string formatted according to the sx_SetDateFormat setting.

Parameters

If True, the century digits will be returned. If False, they will not.

VB Example

Sub Form_Load ()

' main form initialization routines

sx_CloseAll

sx_SetDateFormat ANSI

sx_SetCentury True

sx_SetDeleted True

iRetVal = sx_SetHandles(30)

 

If Dir$("c:\data\sxcust.dbf") = "" Then

MsgBox "Test file missing. Aborting!"

End

End If

End Sub

C Example

// Standard initialization

sx_SetStringType(1); // C strings

sx_SetCentury(TRUE); // dates to display century

sx_SetDateFormat(AMERICAN); // date format MM/DD/CCYY

sx_SetDeleted(TRUE); // filter deleted records

See Also

sx_SetEpoch, sx_GetDateString, sx_Replace, sx_SetDateFormat