Page 1 of 1
Need Help with date and scope
Posted: Tue Feb 22, 2011 11:01 am
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
Re: Need Help with date and scope
Posted: Tue Feb 22, 2011 11:53 am
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
Re: Need Help with date and scope
Posted: Tue Feb 22, 2011 8:06 pm
by Sepp Hinterhuber
Yes it helps
Thanks You