Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
IF Statement Doesn't Seem to be Working
Message
From
07/08/1998 15:47:58
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
06/08/1998 14:18:25
Monte Murdock
Universal American Mortgage Company
Clearwater, Florida, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00123956
Message ID:
00124917
Views:
16
>>If not using .NULL. ?
>>if empty(abs.late + abs.absent + abs.early)
>> messagebox(...
>
>Your statement:
>IF Abs.late==0 AND Abs.absent==0 AND Abs.early==0
> MESSAGEBOX('You need to make a non-zero entry') + CHR(13) + ;
> 'in either Late:, Absent:, or Early:', 0+48+0, 'Error')
>
>I believe you closed the ")" to early try the following
>IF Abs.late==0 AND Abs.absent==0 AND Abs.early==0
> =MESSAGEBOX('You need to make a non-zero entry' + CHR(13) + ;
> 'in either Late:, Absent:, or Early:', 0+48+0, 'Error')
>ENDIF

This seems to take too long. I'd suggest using a different alias instead of ABS, because ABS is a keyword. We've seen weirder things happen already when keywords are used as variable names, field names, aliases or whatever.

Having something else instead of English for a native language comes as a blessing sometimes - my alias would probably be ODS, which surely doesn't sound like a keyword.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform