Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using trigger to generate unique ID
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00019635
Message ID:
00019782
Views:
36
>>> can this be done? i'm trying to generate a unique id with the insert
>>> record trigger, and am told i can't update the cursor because it's read
>>> only...
>>
>>why aren't you using the defualt value option for the ID field
>>
>>Arnon
>
>because i forgot it was there.... thanks.

Hi dave, Arnon is right...
But if for any reason you need to make a cursor updatable you can
do it, you just need to open the cursor again with another alias
and is going to be open like a normal table, could append, delete,
edit,index, etc...
something like:

USE my_cursor_name IN 0 AGAIN ALIAS my_other_cursor_name

If you want you can close the previous cursor to have just
one.
Luis Guzman, MCP
"The only glory most of us have to hope for
is the glory of being normal." Katherine Fulleton Gerould
Previous
Reply
Map
View

Click here to load this message in the networking platform