Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Unique ID increment
Message
From
24/08/1998 23:11:23
 
 
To
24/08/1998 18:03:51
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00128168
Message ID:
00129570
Views:
29
>Hi Erik,
>
>Can you be more specific as to where in the TasTrade sample I
>can find the example of generating the unique ID? I have looked
>in the methods of most of the .scx's and didn't find anything that
>looked like that. Thanks
>
>Regards,
>
>Paige

Look in the dbc at the stored procedures. There is function there called newid that accepts an alias and returns an incremented id. The trick is to put a call to this function in the default valur property of your primary key field.

newid('thisalias')

Or (if I remember correctly), just

newid()

and the current alias is looked up in the table.
Erik Moore
Clientelligence
Previous
Reply
Map
View

Click here to load this message in the networking platform