messej01
asked on
Type Mismatch Error
Hi,
I keep getting this error when creating test documents in my newly created Lotus Notes Library Database. Can anyone advise how to fix this?
Thanks
Messej01
I keep getting this error when creating test documents in my newly created Lotus Notes Library Database. Can anyone advise how to fix this?
Thanks
Messej01
Another one that often occurs is date handling. A NotesDateTime object does not return a date or time. It's property .LSLocalTime does!
As you see.... without the code at hand, we can't to much else but guessing.
As you see.... without the code at hand, we can't to much else but guessing.
Check QueryOpen, PostOpen events and also QuerySave event.
Try to debug and see where the Lotus Script is residing and provide us with the code.. we will see it.
Try to debug and see where the Lotus Script is residing and provide us with the code.. we will see it.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Agree with CRAK, but also, you might have to remark out all the "On Error" traps, so the debugger will stop on the "errant" Line.
I usually do a Search and Replace
Search for: On Error
Replace with 'On Error
When you have the errant line, post it and we'll help you out.
I usually do a Search and Replace
Search for: On Error
Replace with 'On Error
When you have the errant line, post it and we'll help you out.
did we solve your problem?
A type mismatch may also occur on e.g. variants (acting as string) or uninitialised arrays, when you try to retrieve an indexed value like var(0). Also if you feed an array into a variable that doesn't expect one. Are you feeding the new UI documument with a multi-value field from another (back-end) doc by any chance? FieldSetText() doesn't expect an array!
Perhaps you could post you code here so we can take a look?