English
C ++ Forum

Error with MOD

 

Detlef
Jagolski
Hello Sebastian,

have subesquent code
CompileMarkSeparation
Proc AddTime

    Parameters Zeit1$, Zeit2$
    var Stunden1%  = Val(SubStr$(Zeit1$,1,":"))
    var Menuten1%  = Val(SubStr$(Zeit1$,2,":"))
    var Sekunden1% = Val(SubStr$(Zeit1$,3,":"))
    var Stunden2%  = Val(SubStr$(Zeit2$,1,":"))
    var Menuten2%  = Val(SubStr$(Zeit2$,2,":"))
    var Sekunden2% = Val(SubStr$(Zeit2$,3,":"))
    var Time1% = (Stunden1% * 3600) + (Menuten1% * 60) + Sekunden1%
    var Time2% = (Stunden2% * 3600) + (Menuten2% * 60) + Sekunden2%
    var Sekundenzahl% = Time1% + Time2%
    var Sekunden% = Sekundenzahl% MOD 60
    var Minuten%  = (Sekundenzahl% / 60) MOD 60
    var Stunden%  = (Sekundenzahl% / 60 / 60) MOD 24
    var Zeit$ = Format$("00",Stunden%)+":"+Format$("00",Minuten%)+":"+Format$("00",Sekunden%)
    Return Zeit$

ENDPROC


Profan2Cpp power from it
CompileMarkSeparation
in the row nSekunden = sekundenzahl % mod60; I get a Error Message!
Should The row not so looks nSekunden = _D(nsekundenzahl) mod60;?????

Error E2451 plan-Calc_Edition_2009.cpp 1925: Undefiniertes symbol sekundenzahl in function Proc_addtime(int,...)
Error E2379 plan-Calc_Edition_2009.cpp 1926: In instruction missing ; in function Proc_addtime(int,...)
Error E2379 plan-Calc_Edition_2009.cpp 1927: In instruction missing ; in function Proc_addtime(int,...)

Greeting

Detlef
 
XProfan X4, PRFellow, Profan2Cpp - Version 2.0c-pre5, Windows 11
06/28/09  
 




Sebastian
König
Hello Detlef,

thanks for Info! there runs well something at Operator-Parsing schief... I trouble me therefore and login me then again.

MfG

Sebastian
 
Windows XP, XProfan/Profan² 4.5 bis 11
Profan2Cpp-Homepage:  [...] 
Alte Profan²-Seite:  [...] 
06/28/09  
 




Sebastian
König
I have The cause for Error straight found. If I it correctly. see, exit the trouble only Context with VAR on and concerns AND and OR just as How MOD. too the Syntax-Check gives irrtümlich a Error-Falschmeldung from.

I engage me now time with the Korrektur and mail you then a Mail with of/ one korrigierten Version. hopefully come I soon too time moreover, a offizielle Version 2.0c fertigzustellen...

MfG

Sebastian
 
Windows XP, XProfan/Profan² 4.5 bis 11
Profan2Cpp-Homepage:  [...] 
Alte Profan²-Seite:  [...] 
06/30/09  
 




Detlef
Jagolski
Hello Sebastian,

first once thanks for your Help. In stature$ must it too a problem give, have too yet no Time had it accurate To testing.
features: No Error Message and Programmabsturz.
is only one Info!!!

Greeting

Detlef
 
XProfan X4, PRFellow, Profan2Cpp - Version 2.0c-pre5, Windows 11
06/30/09  
 



Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

7.537 Views

Untitledvor 0 min.
Sven Bader02/23/23
Georg Teles02/03/18
funkheld12/11/13
Detlef Jagolski11/05/11
More...

Themeninformationen

this Topic has 2 subscriber:

Sebastian König (2x)
Detlef Jagolski (2x)


Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie