Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
If ...............Else not working
Message
From
04/03/2003 12:52:31
 
 
To
04/03/2003 12:47:39
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00761034
Message ID:
00761037
Views:
31
Koot,

You need to start the "else" code on the line after the else, like below.

>I used the following code to calculate certain hours worked but the ELSE statement gets ignored. All the values are correct.
>There is some calculations before this.
>
>"  wHour = (45 - hHour)
>  nHour = (thetot.sum_hours - (thetot.sum_shifts - dshift.sum_shifts))
> if  nHour > wHour
>   thisform.txtNhours.value = wHour
> else
     thisform.txtNhours.value = nHour
  endif
Steve Gibson
Previous
Reply
Map
View

Click here to load this message in the networking platform