Figuring out if number is multiple of 14
I need to know if a number is a multiple of 14. I am dynamicly creating a calendar where I don't know the dates I want to display are at design time. I want to show rows of 14 days. If the user's date range is 2 days then I need to make it 14 if their range is 15 I need to make it 28 (two rows of 14) if it is 30 I need 42, ect.
I think I need to do something like :
Code:
intMod = intVar / 2
intMod = mod(intMod)
if intMod = 0 then
do something
but im not real sure, I havent worked with mod since pascal :)
Michael
Or perhaps the most simple...
way to find out if a number is a multiple of 14 is
if mynumber / 14 = int (mynumber / 14) then
end if
Pigmy