Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
The function 'newid' from 'tastrade project'
Message
From
08/08/2004 12:49:39
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00931633
Message ID:
00931634
Views:
19
>hi all:
>-i have a database,
>-i used the newid function for a table
>-there is a view, based on such a table
>-when i select the view and i apply an 'append blank' to the view
>-the 'set step on', shows me, that the code in the newid function is being
> excecuted.
>-i find this awkward!! it is supposed, that such a code would be excecuted
> until y come to the 'tableupdate command'???
>-how come i got this?? any solutions??
>-1000 thanks in advance

Jose,

I suppose that the NewId() is in the Default clause of the field. An append blank will fill the record with the default values. Hence that is when the NewId() is called.

That is not really a problem as I see it since a TableUpdate() is only trying to permanently 'write' the values in the buffer to disk.
Gregory
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform