• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 872
  • Last Modified:

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
0
messej01
Asked:
messej01
  • 3
  • 2
1 Solution
 
CRAKCommented:
Try using the debugger: that should show you which variables have this conflict. You must be feeding a variable of type "X" (e.g. string) with a value of type "Y" (e.g. integer).
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?
0
 
CRAKCommented:
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.
0
 
madheeswarCommented:
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.
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
CRAKCommented:
...and sometimes it helps to add folliwing line to "Options":

Option Declare

It'll force you to DIM every variable you use. That way you'll have less doubt about a variable's datatype...
0
 
marilyngCommented:
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.
0
 
marilyngCommented:
did we solve your problem?
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now