Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Look what I foundout
Message
From
11/02/2000 01:14:37
Walter Meester
HoogkarspelNetherlands
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00330296
Message ID:
00330543
Views:
12
Jim,

>Yes y9ou can do that. However, you cannot ever open that table if tyhe UDF is not visible to VFP as it will cuase an error that will prevent the table from opening. Also, you must insure that the UDF always returns a value of the same type and length or else the index will become corrupt.
>
>This is one of those things that "can be done" but "shouldn't be done". Like shooting yourself in the head, of course you can shoot yourself, but it isn't a very good idea to do it.

I think you're right saying that this shouldn't be done. However, in the past I used index based on UDFs to provide some trigger functionality within FPW 2.x and I can imagine that there will be (very) exceptional cases where and UDF based index can be of any benefit. I would probably store the UDF as a Stored Procedure.

But of course you're right it souldn't be used in general.

Walter,
Previous
Reply
Map
View

Click here to load this message in the networking platform