FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Need Help with date and scope
Posts: 8
Joined: Thu Jun 03, 2010 09:15 AM
Need Help with date and scope
Posted: 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

Posts: 883
Joined: Tue Oct 11, 2005 11:57 AM
Re: Need Help with date and scope
Posted: 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
Posts: 8
Joined: Thu Jun 03, 2010 09:15 AM
Re: Need Help with date and scope
Posted: Tue Feb 22, 2011 08:06 PM

Yes it helps

Thanks You

Continue the discussion