Cooking up numbers


Viel zu häufig muß ich mir eine Nummer ausdenken. Select document nimmt eine Longint als Erinnerung an den letzten Verzeichnispfad. Welche Longint nehme ich? Eindeutig wäre gut, nicht schon an anderer Stelle verwendet. Ehe ich mühsam eine suche, baue ich mir eine aus heute und jetzt: 1511261052.

Das sind 10 Stellen. Eine ziemlich lange Nummer. Paßt dazu die Longint?

MAXLONG = 2147483647, gute 2 Milliarden = 10 Stellen. Eine Longint reicht bis ins Jahr 2021. Ab 2022 würde ich dann die Nummern auf 10 Minuten genau kürzen. Werde ich aber nicht brauchen, denn dann nehme ich die 64-Bit Longint und die ist lang genug. Heute ist die  64-Bit Longint ein 4D SQL-feature.

Für CALL SUBFORM CONTAINER setze ich ein negatives Vorzeichen.


Every other day I need to cook up a number. Select document needs one to remember the last selected path. Which number should I use? Unique would be great not to mess up with other usages of numbers. Not to waste too much time, I create one from today and now: 1511261052.

This is 10 digits. A really long number. Will it fit into a longint?

MAXLONG = 2147483647, this is 2 billion = 10 digits. So I’m set till the year 2021. Starting 2022 I’d shorten the number to 10-minutes intervall. Probably I don’t need to, 64-bit longint are long enough. Today the 64-bit longint is a 4D SQL-feature, only.

In case of CALL SUBFORM CONTAINER I put the minus-sign in front.