Search found 129 matches

by Piotr D
Tue Mar 12, 2024 12:26 am
Forum: eXpress++ Support
Topic: How can I change the PICTURE "99,999" from a numeric field to this PICTURE "9,999.9"
Replies: 2
Views: 250

Re: How can I change the PICTURE "99,999" from a numeric field to this PICTURE "9,999.9"

Hi Nolberto,
the simplest way is to double the DCGET like:

@ 1,1 DCGET nVar PICT "999,99" HIDE {|| nChoice=2}
@ 1,1 DCGET nVar PICT "9,999.99" HIDE {||nChoice=1}

Regards,
Piotr
by Piotr D
Mon Oct 16, 2023 1:24 am
Forum: Xbase++ 2.0
Topic: Error in XbpToolbar
Replies: 11
Views: 3482

Re: Error in XbpToolbar

But MsComCtrl.OCX is still needed to use with XbpRtf() (also DCRTF).
by Piotr D
Sat Oct 14, 2023 12:50 pm
Forum: Xbase++ 2.0
Topic: Error in XbpToolbar
Replies: 11
Views: 3482

Re: Error in XbpToolbar

Yes, Jimmy,
as you see, most people use XbpToolbar class, which is from XbpActiveXControl superclass.

Regards
Piotr
by Piotr D
Thu Oct 12, 2023 5:16 am
Forum: Xbase++ 2.0
Topic: Error in XbpToolbar
Replies: 11
Views: 3482

Re: Error in XbpToolbar

Solved! The problem is identical like in 2012, described: http://support.microsoft.com/kb/2597986 Runnig this batch as administrator: REM delete bad register reg delete hkcr\typelib\{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}\2.0 /f if exist %systemroot%\SysWOW64\cscript.exe goto 64 %systemroot%\system32...
by Piotr D
Thu Oct 12, 2023 1:15 am
Forum: Xbase++ 2.0
Topic: Error in XbpToolbar
Replies: 11
Views: 3482

Error in XbpToolbar

Hi, one of my customer report an error. This is only on computer with Office2022 (upgrade from Office2013). On another computers works fine. The line in program with error is: ::oToolbar:LoadImageSet( XBPTOOLBAR_STDIMAGES_SMALL ) ::oToolbar:ButtonClick := {|oButton| ::ToolButtonClick(oButton)} oButt...
by Piotr D
Sun Aug 27, 2023 11:05 pm
Forum: eXpress++ Support
Topic: FacturaE
Replies: 2
Views: 1617

Re: FacturaE

For digital signing I use Chilkat library (ActiveX). It's very helpful and gives additional tools when building a signature.
Regards
Piotr
by Piotr D
Tue Aug 15, 2023 11:23 pm
Forum: Xbase++ 2.0
Topic: Malfunction round()
Replies: 5
Views: 2049

Re: Malfunction round()

Hi all,
I found another solution. This easy trick solve the problem :)
instead Round(x,n) ---> Round(Val(Str(x)),n)

Regards
Piotr
by Piotr D
Tue Aug 15, 2023 2:53 am
Forum: Xbase++ 2.0
Topic: Malfunction round()
Replies: 5
Views: 2049

Re: Malfunction round()

Hi all,
I found that these problem was described under PDR 6678. When I add in ARC file under VERSION:
"FPU_ControlWord" = "626"

this problem was solved.

Regards
Piotr
by Piotr D
Tue Aug 15, 2023 2:08 am
Forum: Xbase++ 2.0
Topic: Malfunction round()
Replies: 5
Views: 2049

Re: Malfunction round()

Wolfgang,
these function don't solve problem. For example:
x=14.144966
Round(x,2) will be 14.14
and RoundZ(x) will be 14.45.

To get the correct result of multiple multiplication of a non-integer values, we need round after each multiplication.

Piotr
by Piotr D
Mon Aug 14, 2023 3:50 am
Forum: Xbase++ 2.0
Topic: Malfunction round()
Replies: 5
Views: 2049

Re: Malfunction round()

Update:
when you round intermediate results, like:
Round(Round(0.82*0.15,4)*115.00 ,2)
the result is correct: 14.15

Look like it's again the result of a binary representation of the non-integer value (like 14.15 = 14.1499999999999999999...)

Regards
Piotr