Need Help with date and scope

Post Reply
User avatar
Sepp Hinterhuber
Posts: 8
Joined: Thu Jun 03, 2010 9:15 am

Need Help with date and scope

Post by Sepp Hinterhuber »

I need to make a scope on a date Field for example January 2009 or Dezember 2010

index is dtoc(datefield)

i tested scope on "01.01.2009" , "31.01.2009"

but dont work

tx
User avatar
Adolfo
Posts: 815
Joined: Tue Oct 11, 2005 11:57 am
Location: Chile
Contact:

Re: Need Help with date and scope

Post by Adolfo »

Hi Sepp

I use scopes with no problem with DBFCDX, but when I build indexes I do it with DTOS(DATE)

Select 1
Use Contracts Index Contracts alias con Shared
Set Order to 2 //This is my DTOS(DATE) Index

Fec1:="20000101" // 01/01/2000
Fec2:="20000530" //30/05/2000

con->(OrdScope(0,Fec1))
con->(OrdScope(1,Fec2))
con->(DbGoTop())

Hope it helps

From Chile
Adolfo
;-) Ji,ji,ji... buena la cosa... "all you need is code"

http://www.xdata.cl - Desarrollo Inteligente
----------
Lenovo Legion Y520, 16GB Ram, 1 TB NVME M.2, 1 TB SSD, GTX 1050
User avatar
Sepp Hinterhuber
Posts: 8
Joined: Thu Jun 03, 2010 9:15 am

Re: Need Help with date and scope

Post by Sepp Hinterhuber »

Yes it helps

Thanks You
Post Reply