Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Filter date
Message
 
To
17/03/2007 07:56:55
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01204953
Message ID:
01204955
Views:
18
This message has been marked as the solution to the initial question of the thread.
>hi all,
>i need to filter from mytable all records have value 2007,
>myfield character type(c 20) as (January 2007 ),
>
>as
>
>SET FILTER TO dat=SUBSTR("January       2007  ",8)
>select * form mytable where dat = SUBSTR("January       2007  ",8)
>or
>SELECT * FROM newtable WHERE dat=RIGHT("       2005  ",14)
>
>thanks.
SET FILTER TO "2007" $ dat
GO TOP

OR 

SELECT * FROM newtable WHERE "2007" $ dat
_______________________________________________________________
Testing displays the presence, not the absence of bugs.
If a software application has to be designed, it has to be designed correctly!
_______________________________________________________________
Vladimir Zografski
Systems Analyst
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform