Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Always trips me up!
Message
 
 
To
14/06/2007 17:34:25
Mike Yearwood
Toronto, Ontario, Canada
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01233129
Message ID:
01233331
Views:
23
>>With GUID you need to modify this method a bit. How many chars is your GUID? Remove CTOBIN/BINTOC then and use simple
RIGHT(MAX(DTOS(effDate) + sth_pk),16)
if your GUID 16 chars.
>
>I see what's going on here. Neat trick! The max causes it to pick the highest date and the pk is added on. Taking the right most part of the string results in the PK.
>
>This technique is a little quicker too. By the way, who showed you this technique?
>MisterX's 52.324
>Borislav's 57.408
>and Sergey's 77.366

I told at least 5 times in this thread and in tek-tips, but I repeat just once more: :)

It's in a FAQ on a Russian web-ste wrriten by Vladimir Maximov with the idea originated by Igor Korolev.
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform