In Lotusscript I have this:
Dim PurchaseValue As Double
PurchaseValue = CDbl (docOrder.InkoopKeerAantal(0))
On the form InkoopKeerAantal is a Number.
I get the error:
Type mismatch in method CoerStrToNum: STRING found, Double Expected.
If I do CInt then I get String found Short expected...
And PurchaseValue = docOrder.InkoopKeerAantal(0)
Also gives me the same error as above.
Msgbox TypeName( docOrder.InkoopKeerAantal(0) )andMsgbox TypeName( docOrder.GetitemValue( "InkoopKeerAantal" )(0) )andMsgbox Cstr( docOrder.InkoopKeerAantal(0) )- Torsten LinkMsgbox TypeName( docOrder.InkoopKeerAantal(0) )works here without a problem. What version of Notes do you have? Please post the complete code, probably something else is wrong in the context. What does the debugger show you as item value for InkoopKeerAantal? - Torsten Link