TheOriginalOne
Active Member
Hi, Listers!
We are not a team of C developers but we need to make a mod to C program. We are having a heck of a time opening a file and reading a value from a file. We've read the Help in OneWorld, reviewed the API guide, looked online, yet this thing is beating us with a club. Could you read the following snippet and offer any clues as to what's wrong? I'll be more than happy to provide any supplemental information that may be required.
Thanks a lot, everyone. We do appreciate it!
<font class="small">Code:</font><hr /><pre>idReturnCode = JDB_OpenTable (hUser, NID_F5503WPT, 0, NULL, (ushort) 0, (char *) NULL, &hRequestF5503WPT);
if (idReturnCode == ER_SUCCESS)
{
memcpy((void *)(&dsKeyF5503WPT.pttrar), (const void *)(dsD0000163.szPaymentTermsCode01), sizeof(dsD0000163.szPaymentTermsCode01));
idJDEDBReturn = JDB_FetchKeyed(hRequestF5503WPT, (ID) 0, &dsKeyF5503WPT, (short) 1, &dsF5503WPT, FALSE);
JDB_CloseTable (hRequestF5503WPT);
} </pre><hr />
We are not a team of C developers but we need to make a mod to C program. We are having a heck of a time opening a file and reading a value from a file. We've read the Help in OneWorld, reviewed the API guide, looked online, yet this thing is beating us with a club. Could you read the following snippet and offer any clues as to what's wrong? I'll be more than happy to provide any supplemental information that may be required.
Thanks a lot, everyone. We do appreciate it!
<font class="small">Code:</font><hr /><pre>idReturnCode = JDB_OpenTable (hUser, NID_F5503WPT, 0, NULL, (ushort) 0, (char *) NULL, &hRequestF5503WPT);
if (idReturnCode == ER_SUCCESS)
{
memcpy((void *)(&dsKeyF5503WPT.pttrar), (const void *)(dsD0000163.szPaymentTermsCode01), sizeof(dsD0000163.szPaymentTermsCode01));
idJDEDBReturn = JDB_FetchKeyed(hRequestF5503WPT, (ID) 0, &dsKeyF5503WPT, (short) 1, &dsF5503WPT, FALSE);
JDB_CloseTable (hRequestF5503WPT);
} </pre><hr />