Error: Parameter has a wrong data type

This forum is for eXpress++ general support.
Message
Author
Koverhage
Posts: 128
Joined: Mon Feb 01, 2010 8:45 am

Re: Error: Parameter has a wrong data type

#11 Post 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.
Klaus

skiman
Posts: 880
Joined: Thu Jan 28, 2010 1:22 am
Location: Sijsele, Belgium
Contact:

Re: Error: Parameter has a wrong data type

#12 Post by skiman »

Hi,

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

Chris.
www.aboservice.be

Koverhage
Posts: 128
Joined: Mon Feb 01, 2010 8:45 am

Re: Error: Parameter has a wrong data type

#13 Post by Koverhage »

what occurs if you do
// For Windows 7 64-bit
nValue := val(str(nValue))
Klaus

User avatar
Auge_Ohr
Posts: 1220
Joined: Wed Feb 24, 2010 3:44 pm

Re: Error: Parameter has a wrong data type

#14 Post 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)
greetings by OHR
Jimmy

skiman
Posts: 880
Joined: Thu Jan 28, 2010 1:22 am
Location: Sijsele, Belgium
Contact:

Re: Error: Parameter has a wrong data type

#15 Post 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.
Best regards,

Chris.
www.aboservice.be

bwolfsohn
Posts: 618
Joined: Thu Jan 28, 2010 7:07 am
Location: Alachua, Florida USA
Contact:

Re: Error: Parameter has a wrong data type

#16 Post by bwolfsohn »

I always used val(dc_xtoc(xval))
Brian Wolfsohn
Retired and traveling around the country to music festivals in my RV.
OOPS.. Corona Virus, so NOT travelling around the country right now...
http://www.breadmanrises.com
FB travel group: The Breadman Rises

Post Reply