Our full technical support staff does not monitor this forum. If you need assistance from a member of our staff, please submit your question from the Ask a Question page.


Log in or register to post/reply in the forum.

CR Basic Compilation error


rgupta65 Dec 14, 2011 06:25 PM

Hello,

I am getting some compilation error in TimeintoInterval command in below program.
Which i did not get with my previous loggernet setup in my PC. i installed same version 4.0 of loggernet which was there previously in my PC , only installed through new media and license key.

Error is:
"Parameter must be a constant integer:TimeintoInterval((1440-60*timezone...........))

Kindly help me to resolve it.
============================================================
<Proprietary code removed>

* Last updated by: Admin on 12/21/2011 @ 2:44 PM *


kirving Dec 14, 2011 07:20 PM

I think if you do the calculation in the const declaration it will work, e.g.,

Const TimeZone_hrs = +5.50
Const TimeZone_min = (1440-60*TimeZone_hrs) MOD 1440 ' check?
...
If TimeIntoInterval(TimeZone_min,1440,min) Then
...

(I just copied the expression and don't know if it's correct.)


rgupta65 Dec 16, 2011 01:02 PM

Thanks Alot !!!!!!!!!!

Its works.... Great Observation.

Log in or register to post/reply in the forum.