on 10-06-2015 3:39 PM
Hi Vincent,
Does the error occur on the double.Parse line ?
Regards,
Johan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi, Johan
Thanks for your help
the message is not on the double.parse line
i have no error on compilation but only during execution.
herewith the whole message
System.InvalidCastException : Unable to cast COM object of type 'System.__ComObjet' to interface type 'SAPbouiCOM.Matrix'. This operation failed because the QueryInterface call on the COM component for the interface with IDD '{DD7804DC-811B-4829-8E87-2F
thanks for your support
Vincent
please double check the unique ids you are using in getmatrix, one of them is not a matrix.
first of all identify the line in which the error occurs, debug your code.
then check if the following are really matrixes:
Matrix.GetFromUID(pVal.Form, "3") -> is really "3" a matrix? no, it's an edittext ( bp code )
Matrix.GetFromUID(pVal.Form, "1250000072") -> is this? no, it's an edittext ( docduedate )
Matrix.GetFromUID(pVal.Form, "23") -> yes, this item is a matrix
double check those unique identifiers, always verify item type.
btw which type does method "Matrix.GetFromUID" returns? i think it should be a matrix. that's your problem.
i don't know swiss framework, but i believe you are using the wrong method to get an item value from a form.
User | Count |
---|---|
103 | |
12 | |
11 | |
6 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.