TM24x12 Edit

Jeff Harrison jeffaharrison at yahoo.com
Mon Mar 12 11:41:39 PST 2007


--- Bill Randall <wrandall at fptech.com> wrote:

(jeff wrote) 
> 
> >
> > --- Rodgers Hemer <r.hemer at w-link.net> wrote:
> >
> >> I have been using an edit labeled "TM24x12" which
[snip]
> >> anyone see a problem with this edit.  I have
> studied
> >> it and cannot
> >> see any logic errors.
> >>
> >
> > Can you post the edit?
> >
> 
> TM24x12:~time1 ("AM"|"PM")| (timepm1) <:>
> ("00"-"59") <PM> | timeam
> time1:("10"-"12" | [!0!] "1"-"9") <:> ("00"-"59")
> timeam:(timeam1 | time1) <AM>
> timeam1:(!00!<12> | !24!<12>) <:> ("00"-"59")
> timepm:(timepm1) <":"> ("00"-"59") <PM>
>
timepm1:"12"|!13!<1>|!14!<2>|!15!<3>|!16!<4>|!17!<5>|!18!<6>|timepm2
> timepm2:!19!<7>|!20!<8>|!21!<9>|!22!<10>|!23!<11>
> 
> 

A quick fix for this would be to change your timepm1
edit so that you are always replacing the same number
of characters.  For example, change the !13!<1> to
!13!<01>

If you don't want the leading zeroes though, then I
think this edit will need to be re-written - Or
perhaps it could be more easily written with a call
table in processing.  (A system wide function would be
nice for this if filepro had them).

You mentioned that you think this came from fptech
originally?  That would be surprising as it doesn't
appear to work as it is written.

Jeff Harrison
jeffaharrison at yahoo.com

Author of JHExport and JHImport.  The fastest and
easiest ways to generate filepro exports and imports.


 
____________________________________________________________________________________
Be a PS3 game guru.
Get your game face on with the latest PS3 news and previews at Yahoo! Games.
http://videogames.yahoo.com/platform?platform=120121


More information about the Filepro-list mailing list