Professional Documents
Culture Documents
jdeGTGetCountKeyStr
Last Modified: B9 | October 2, 2020
This function will retrieve the number of records media object exist in F00165.
Syntax
JDERTN(long) JDEWINAPI jdeGTGetCount (
PJSTR szObjectName,
LPVOID lpMODSKey,
MOTYPE nMOType);
Parameters
Parameter Notes Usage
szObjectName Input/Required GT data structure name Primary unique
key
lpMODSKey Input/Required GT data structure with valid data. The
data within the GT data structure will be
formatted into a string used for TXKY
pszMOKeyStr Input/Required Formatted string used for TXKY
nMOType Input/Required Media Object Type. See table below
for valid types.
Return Value
Return Value Description
>0 Number of records found
Less than or equal to Zero No record founds/API fails
Example
Sample #1:
long lTotalRecFound = 0;
BOOL bSuccess = TRUE;
}
else
{
bSuccess = FALSE;
}
return;
Sample #2:
long lTotalRecFound = 0;
DSABGT dsABGT = {0};
BOOL bSuccess = TRUE;
ParseNumericString(&dsABGT.mnAddressNumber, J(“1”));
return;
Additional Notes
MODATA (or LPMODATA) Data Structure definition:
MODATA, *LPMODATA
B9 January, 2002 2
jdeGTGetCount()/jdeGTGetCountKeyStr()
IZE]
PJSTR pData Allocate memory for text and
shortcut media object type.
MOTYPE definition:
See Also
B9 January, 2002 4
jdeGTGetCount()/jdeGTGetCountKeyStr()
B9 January, 2002 5