View Single Post
Old Aug 19th, 2005, 1:12 PM   #36
gj15987
Programmer
 
Join Date: Feb 2005
Posts: 45
Rep Power: 0 gj15987 is on a distinguished road
Those output statements really work! thanks! i've worked out where the errors are and I have corrected them.

I now have a delphi question, Ooble? You seem to know delphi.

I need the correct code to check that there is nothing in the time out field. I was using

if timetostr(tbl_shiftTime_Out)='' then...

This should convert the time to a string, and then if the string is equal to nothing then to execute the code (note: '' is 2 ' and not a ")...Even though delphi accepts it, it doesn't seem to work. I entered some data into the field and retyped the code to look for it and it works fine, so its just not the right code to check for nothing.

EDIT...

Sussed it, just changed it to

if timetostr(tbl_shiftTime_Out.value)='00:00:00'

Thanks so much for your help guys. I'd say thats the hardest part of the project out of the way now. But if i need anymore help I know where i come right?! lol

Thanks again.

Last edited by gj15987; Aug 19th, 2005 at 1:40 PM.
gj15987 is offline   Reply With Quote