Problem 1: Getting error "An error occurred when setting the property named 'Value' of the object named 'Contact_No' of type 'Field'."
followed by "Cannot insert record here." when running a form with ObjectPAL code to insert a record in a multiRecord object.
Date: 4 December 1996
Versions: P7 W95/NT
Description:
Under certain circumstances uiObject.insertAfterRecord() will lock up Paradox if the table is empty.
Both the table's data model ReadOnly property and the field object's ReadOnly property were false.
The error only happens when the table, the record object is defined on, is empty.
I had tried the following code in the beginning when I first discovered the error and thought that I was trying to use InsertAfterRecord where
there was no record to insert after.
try
ThePage.CONTACTS.InsertAfterRecord()
onFail
ThePage.CONTACTS.InsertRecord()
endTry
As it still did not work I thought that it was something else other that just inserting into an empty table where there was no record to insert after
that was wrong. The Try...onFail...endTry was not doing what I thought it would.
It's now works as follows
if ThePage.CONTACTS.NRecords >= 1 then
ThePage.CONTACTS.InsertAfterRecord()
else
ThePage.CONTACTS.InsertRecord()
endIf
My comments 2000-07: I don't get the error, but Paradox locks up. Tested with a keyed and a non keyed table. Error is probably caused by
errorTrapOnWarnings(Yes) being specified
More information:
see fixed bugs PX0317
Problem 2: Getting error "An error occurred when setting the property named 'Value' of the object named 'fldDisplay' of type 'Field'" and
"Invalid character(s) in this field." when pressing Define New Label button in Label Expert.
Versions: P7 W95/NT
More information:
see fixed bugs PX0253