Ali Saeed
Member
I'm trying to fetch text in the attachments using JDEGTAllocFetchText(), but it doesn't fetch the text. The function prototype is:
JDERTN(LPSTR) JDEWINAPI JDEGTAllocFetchText(
LPSTR pObjectName,
LPVOID pKey,
BOOL bConvert );
<font color="green"> /*****************************
* My Code
*****************************/</font>
DSGT00092 dsGT00092Key;
LPSTR lpText = (LPSTR)NULL;
ParseNumericString(&dsGT00092Key.mnSuppDataNumericKey1, "211817");
lpText = JDEGTAllocFetchText ( "GT00092", &dsGT00092Key, TRUE);
/* The debugger shows the lpText as <font color="red"> CXX0030: Error: Expression cannot be evaluated </font>
<font color="green">
I ran JDEGTExists() which returns JDEDB_PASSED to confirm the attachment does exist */
</font>
Thanks for your help in advance.
JDERTN(LPSTR) JDEWINAPI JDEGTAllocFetchText(
LPSTR pObjectName,
LPVOID pKey,
BOOL bConvert );
<font color="green"> /*****************************
* My Code
*****************************/</font>
DSGT00092 dsGT00092Key;
LPSTR lpText = (LPSTR)NULL;
ParseNumericString(&dsGT00092Key.mnSuppDataNumericKey1, "211817");
lpText = JDEGTAllocFetchText ( "GT00092", &dsGT00092Key, TRUE);
/* The debugger shows the lpText as <font color="red"> CXX0030: Error: Expression cannot be evaluated </font>
<font color="green">
I ran JDEGTExists() which returns JDEDB_PASSED to confirm the attachment does exist */
</font>
Thanks for your help in advance.