Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Generating Unique ID
Message
From
28/11/2001 05:24:46
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00586682
Message ID:
00586827
Views:
19
This message has been marked as a message which has helped to the initial question of the thread.
Nadya,
Why would you bother with what alias you have or what actual dbf is or even if it's a view or table. Simply in your default value or call routine supply a unique name ie: GetNextID('EMPLOYEE').

If you really need actual source one of these would do for you :
lnInUse = aused(arrOpen)
for ix = 1 to lnInUse
? alias(arrOpen[ix,1]),;
 cursorgetprop('SourceName',arrOpen[ix,1]), ;
 cursorgetprop('SourceType',arrOpen[ix,1]), ;
 cursorgetprop('Database',arrOpen[ix,1]),;
 dbf(arrOpen[ix,1])
endfor
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform