sx_GetByte

<< Click to Display Table of Contents >>

Navigation:  Apollo API Listing >

sx_GetByte

VB Declaration

Declare Function sx_GetByte Lib "Apollo9.dll"

(ByVal cpFieldName As String)

As String

C Declaration

LONG FAR PASCAL sx_GetByte

(BYTEP cpFieldName);

Description

Extracts the first character of a field.

Parameters

cpFieldName: The name of the field.

Return Value

The character is returned as a string.

VB Example

' Set serial format depending on product type

If sx_GetByte("prod.product") = 'H' Then

SerialPrefix$ = "HIPER"

End If

C Example

lstrcpy((LPSTR) caType, (LPSTR) sx_GetByte("prod.product"))

if (caType[0] == 'H')

lstrcpy((LPSTR) caPrefix, "HIPER");

See Also

sx_GetString, sx_GetTrimString