Adrian Nier Code

Miscellaneous

FileMaker

Unique record ID

Last modification: Monday, September 01, 2008 09:48 pm



Year ( Get ( CurrentDate ) )

& "-" &

If ( Month ( Get ( CurrentDate ) ) < 10
   ;  "0" &  Month ( Get ( CurrentDate ) )
   ; Month ( Get ( CurrentDate ) )
)

& "-" &

If ( Day ( Get ( CurrentDate ) ) < 10
   ;  "0" &  Day ( Get ( CurrentDate ) )
   ; Day ( Get ( CurrentDate ) )
)

& "_" &

If ( Hour ( Get ( CurrentTime ) ) < 10
   ;  "0" &  Hour ( Get ( CurrentTime ) )
   ; Hour ( Get ( CurrentTime ) )
)

& "-" &

If ( Minute ( Get ( CurrentTime ) ) < 10
   ;  "0" &  Minute ( Get ( CurrentTime ) )
   ; Minute ( Get ( CurrentTime ) )
)

& "-" &

If ( Seconds ( Get ( CurrentTime ) ) < 10
   ;  "0" &  Seconds ( Get ( CurrentTime ) )
   ; Seconds ( Get ( CurrentTime ) )
)

& "_" &

Round ( (Random  *  1000) ; 0 )  
& "-" &
Round ( (Random  *  1000) ; 0 )  
& "-" &
Round ( (Random  *  1000) ; 0 )  
& "-" &
Round ( (Random  *  1000) ; 0 )  
& "-" &
Round ( (Random  *  1000) ; 0 )  
& "-" &
Round ( (Random  *  1000) ; 0 )  
& "_" &

If ( PatternCount ( Get ( SystemNICAddress )  ; "¶" ) > 0
   ;  Left ( Get ( SystemNICAddress ) ; Position ( Get ( SystemNICAddress ) ; "¶" ; 1 ; 1 ) - 1 )
   ;  Get ( SystemNICAddress )
)