Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP9 SQL Tip
Message
From
17/12/2004 12:55:03
 
General information
Forum:
Visual FoxPro
Category:
Visual FoxPro Beta
Title:
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows 2000 SP4
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00970107
Message ID:
00970119
Views:
17
>With the new CAST function, you can now handle VFP memo fields better. For example, I want a distinct set of ClassLib names used in a form:
>SELECT DISTINCT CAST(JUSTFNAME(classloc) as V(60)) ClassLoc ;
>   FROM forms\techcalls.scx ;
>   WHERE NOT EMPTY(ClassLoc) ;
>   INTO CURSOR crsLibs
>Cool, eh?

vfp8 and before ( except trim this is equal )
SELECT DISTINCT LEFT(JUSTFNAME(classloc),60) ClassLoc ;
   FROM forms\techcalls.scx ;
   WERE NOT EMPTY(ClassLoc) ;
  INTO CURSOR crsLibs
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform