Need Help with date and scope

Need Help with date and scope

Postby Sepp Hinterhuber » Tue Feb 22, 2011 11:01 am

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
Sepp Hinterhuber
 
Posts: 8
Joined: Thu Jun 03, 2010 9:15 am

Re: Need Help with date and scope

Postby Adolfo » Tue Feb 22, 2011 11:53 am

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
----------
Asus TUF F15, 32GB Ram, 2 * 1 TB NVME M.2, GTX 1650
User avatar
Adolfo
 
Posts: 860
Joined: Tue Oct 11, 2005 11:57 am
Location: Chile

Re: Need Help with date and scope

Postby Sepp Hinterhuber » Tue Feb 22, 2011 8:06 pm

Yes it helps

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


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 95 guests