Page 2 of 2

Re: Error: Parameter has a wrong data type

Posted: Fri Nov 06, 2020 1:28 am
by Koverhage
skiman,
do you have installed the patch from Alaska for the division by zero problem ?
This problem exist only on 64-bit Systems.

Re: Error: Parameter has a wrong data type

Posted: Mon Nov 09, 2020 2:37 am
by skiman
Hi,

Yes, this is installed. The error is almost everytime in an 'if ...' statement.

Re: Error: Parameter has a wrong data type

Posted: Mon Nov 09, 2020 8:39 am
by Koverhage
what occurs if you do
// For Windows 7 64-bit
nValue := val(str(nValue))

Re: Error: Parameter has a wrong data type

Posted: Mon Nov 09, 2020 12:11 pm
by Auge_Ohr
skiman wrote: Mon Nov 09, 2020 2:37 am Yes, this is installed. The error is almost everytime in an 'if ...' statement.

Code: Select all

If !EMPTY(nSales)

Re: Error: Parameter has a wrong data type

Posted: Tue Nov 10, 2020 1:13 am
by skiman
Klaus,
what occurs if you do
// For Windows 7 64-bit
nValue := val(str(nValue))
I suppose that the error would be the same. A str(nil) gives the same error.

I can't test this, because I can't reproduce the error. The error happens in code which is executed thousand times a day and is working in 99.999% of the time.

Re: Error: Parameter has a wrong data type

Posted: Tue Nov 10, 2020 5:54 pm
by bwolfsohn
I always used val(dc_xtoc(xval))