Re: HELP How to get a remainder in 4GL
Posted in 1996
On May 21, 3:17pm, Bob Payne wrote: > Subject: HELP How to get a remainder in 4GL > This is probably a simple one, but I can't find it in the manual: > > How do you get a remainder (aka modulus) in INFORMIX-4GL? > >-- End of excerpt from Bob Payne Hey bob, you were close its actually the 'MOD' command you're looking for and you're right its not in the 4.0 manuals. I think its released "officially" with the 6.0 but heres an example anyway.. IF this_number MOD that_number = 0 THEN ... blah ... blah ... blah END IF Hope it helps sandys :) -- cheers sandys +------------------------------------------------------------------------+ | PROGRAMMING EXCUSE # 7 : "Somebody must have changed my code?" | |------------------------------------------------------------------------| | | | | ** ** | Sandy Speirs - Analyst/Programmer | | **** **** | | | ** ** ** ** | email : sandys@easter.euro.csg.mot.com | | ** **** ** | Direct: 0131 479 1271 | | ** ** ** | Fax : 0131 479 1314 | | | Pager : 01523 609899 | | Distribution M.I.S | Mobile: 0589 160188 | | Motorola | | | Easter Inch | | | Scotland | European Cellular Subscriber Division | +-----------------------+------------------------------------------------+