Welcome! Log In Create A New Profile

Advanced

Run time error involving HMODIFY

Posted by SolutionJ-Reg 
SolutionJ-Reg
Run time error involving HMODIFY
July 16, 2008 07:27PM
Help!!

I have a realtively simple piece of code that modifies a table. It works fine unless I include a specific column; with this column included I get the following error:

Error at line 38 of Procédure locale _InitTablesSansRubrique process.
BuildBrowsingTable function called.
<> file unknown in <\\WOLVERINE\Reg\My Projects\SJCarrier\SJCarrier.wdd> analysis, or query/view not initialized.
Technical Information
Project : SJCarrier
Dump error of module <WD120HF.DLL> <12.00Keb>.
- WL Call:
Processing <Doublon.PROCEDURE._InitTablesSansRubrique>, line <38>, thread <0>
Function <BuildBrowsingTable>, syntax # <1>
- Level: fatal error (EL_FATAL)
- Error Code: 70018
- WD55 Error Code: 18
- No system error code
- No system error message
- What happened?
<> file unknown in <\\WOLVERINE\Reg\My Projects\SJCarrier\SJCarrier.wdd> analysis, or query/view not initialized.
- Debug Information:
IEWDHF=1001
Module=<WDHF>
Version=<12.00Keb>
Fonction (1,105)
- Attached Information:
EIT_PATHWDD : <\\WOLVERINE\Reg\My Projects\SJCarrier\SJCarrier.wdd>
EIT_LOGICALTABLENAME : <>
EIT_PILEWL :
Procédure locale _InitTablesSansRubrique (Doublon.PROCEDURE._InitTablesSansRubrique), ligne 38
Procédure locale InitTables (Doublon.PROCEDURE.InitTables), ligne 8
Déclarations globales de Doublon (Doublon), ligne 19
Method Updates_FedEx_manifest_audit (CFedEx.Updates_FedEx_manifest_audit), ligne 11
Method Updates_FedEx_manifest_audit (CFedEx.Updates_FedEx_manifest_audit), ligne 11
Method Writes_FedEx_manifest_file (CFedEx.Writes_FedEx_manifest_file), ligne 211
Row Selection of COMBO_Task (Template_WIN_practice model) (WIN_Main.SIDE_SideBar1.COMBO_Task), ligne 23
Click BTN_LOGIN (WIN_Login.BTN_LOGIN), ligne 2
EIT_COMPOSANT :
EIT_DATEHEURE : 16/07/2008 15:22:51
- Identifier in .err: 70116


Here is the code:

PROCEDURE GLOBAL Updates_FedEx_manifest_audit(sStatus is string, nOrdercount is int)
HReadSeekFirst(ManifestAudit,ManifestAuditID,::m_nFedEx_manifest_auditID,hLockWrite)
IF HErrorLock() THEN
Error("Could not update manifest audit - call support")
RESULT(False)
END
IF HFound(ManifestAudit) THEN
ManifestAudit.AuditStatus = sStatus
ManifestAudit.OrderCount = nOrdercount
HModify(ManifestAudit)
RESULT(True)
ELSE
Error("Manifest audit record update failure - call support")
RESULT(False)
END

The field that causes the problem is ManifestAudit.AuditStatus. I can add records to the table with code, I can modify the table (including this column) using the utilities, and as I said before I can make the code work by commenting out the ManifestAudit.AuditStatus = sStatus line.

Has anyone ever seen anything like this before?

If it helps at all, AuditStatus is used in a composite key on the table.

Cheers
Reg
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: