bug: time edit testing...

John Esak john.esak at 21appr.com
Thu Apr 10 12:39:04 PDT 2008


A Small workaround required when using the HM edit and testing.

If you have a variable with HM edit,

Declare slot_time(5,hm)

And you want to test the time this field holds for being within the morning
hours of 6am to 11am for example... and you do:

    If: slot_time gt "6:00" and slot_time le "11:00"
  Then: .....

You will get an incorrect FALSE.  

For example, if slot_time is 9:00 the above line will test FALSE on your
processing table.  If you change the above line to:

    If: slot_time gt " 6:00" and slot_time le "11:00"

It will test TRUE and all is right with the world.  

It would be expected that the test would be a TIME copare and "6:00" would
be just as good as " 6:00", but it isn't.  My guess is FP Tech will change
it to work this way.  Since Ken agreed off line that it should work without
the space as well as with.

John Esak

Cc: fpsupport at fptech.com





More information about the Filepro-list mailing list