Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi :
Can someone help me know what is wrong in my report?
Please find the attached error.
Script:
LET todaytime = Date(Now(), 'dd');
LET Midstart = NUM(17,'00') ;
LET MidEnd = NUM(31,'00') ;
LET start = NUM(1,'00') ;
LET End = NUM(16,'00') ;
if $(vToday) >= $(Midstart ) and $(vToday) <=$(MidEnd )
else if $(vToday) >= $(start ) and $(vToday) <=$(End )
thanks
kyoko
2 small example
LET vToday = day(Now());
IF $(vToday) >= 17 and $(vToday)<=31 THEN
trace '17..31';
ELSEIF $(vToday) >= 1 and $(vToday) <=16 THEN
trace '1..16';
ENDIF;
and with variables
LET Midstart = 17;
LET MidEnd = 31;
LET Start = 1;
LET End = 16;
LET vToday = day(Now())-10;
if $(vToday) >= $(Midstart) and $(vToday) <=$(MidEnd) THEN
trace '17..31';
ELSEIF $(vToday) >= $(Start) and $(vToday) <=$(End) THEN
trace '1..16';
ENDIF;
Hi,
go to Help Menu and see IF
Regards
Use ' ' when you call variable..
' $(vToday)'
Hi Kyoko,
could you please tell me what you have define in vToday variable..
thanks
it seems you have not define variable vToday thats why giving such error
HI AbhaySingh
About "vToday"
LET ThisExecTimeDate = Date(Now(), 'dd');
LET vToday = Num($(ThisExecTimeDate), '00');
2 small example
LET vToday = day(Now());
IF $(vToday) >= 17 and $(vToday)<=31 THEN
trace '17..31';
ELSEIF $(vToday) >= 1 and $(vToday) <=16 THEN
trace '1..16';
ENDIF;
and with variables
LET Midstart = 17;
LET MidEnd = 31;
LET Start = 1;
LET End = 16;
LET vToday = day(Now())-10;
if $(vToday) >= $(Midstart) and $(vToday) <=$(MidEnd) THEN
trace '17..31';
ELSEIF $(vToday) >= $(Start) and $(vToday) <=$(End) THEN
trace '1..16';
ENDIF;
If your working with variables & varibales holds number use $(vName) or vName. If the variable holds string use '$(vName)'