Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Way to create unique ID
Message
 
 
To
21/01/2003 05:50:19
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00743532
Message ID:
00743743
Views:
10
>>In the Electronic Data Entry I allow some manipulations with BldMstr file, which basically allow to add new records. My problem is, I don't know, how to ensure, that each time, I add a record to this BldMstr file, I add a new unique ID.
>>
>
>>The DE application is stand-alone (not multiuser), so I was not using additional table (NextID table) idea...
>>
>>============================================================
>>Can you advise something in my situation, please?
>
>I don't see a good reason not to use NextID. It can easily be used in standalone cases too. For Source I'd add another field to other tables keeping SourceID. Otherwise it sounds you need an allocation for source IDs that could be placed 'in the future'.
>Cetin

Hi Cetin,

My Source and BldMstr files are temporary, e.g. user may work on multiple registries at the same week. Each registry would create its own BldMstr and Source file. NextID would require to keep info about every file. It's not a big deal, of course, but I already implemented another solution, which is simpler and should be sufficient (I hope).
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform