Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Code only runs correctly in debug mode
Message
 
To
03/08/1998 11:06:39
Larry Long
ProgRes (Programming Resources)
Georgia, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00123317
Message ID:
00123581
Views:
29
>That's all well and good for single users and lans, but you cannot use the same strategy if you have a distributed app. For example a multi-lan wan, that may not be on-line all the time with a central location, that keeps a master invoice file. With my way of gen'ing unique numbers all I have to do is add a location/machine id to sys(2015)and I'm done.
>//:^)

Larry,

In that case I would use a table for the ids for eacht able. Each record represents a single new key value and it has a field that stores its status, assigned to a record, ckecked out to a station but not yet assigned to a record , and fully available.

You can also use the same scheme you are using except that you use a character field of 6 byte, the first two are station id and user followed by a four byte integer. Just make the field Character Binary to prevent collation form messing with the binary data.
Previous
Reply
Map
View

Click here to load this message in the networking platform