Index DATE() / Time()

  • Follow


hi,

i can create this

INDEX ON DTOS(MyDate) TAG "MY_DATE" TO &(_cdxname)

but i fail in

INDEX ON STRTRAN(MyTime,':','') TAG "MY_TIME" TO &(_cdxname)

Index will be create but when try to open DBF with BRO.EXE v2.5
( compiled with Cl*pper) i got :

" Structural Index may contain Undefined Tag Expressions"

i knew STRRAN() will "reduce" LEN() of Field "MyTime" ...
how to make a Cl*pper / Xbase++ compatible Index with DATE() and TIME() ?

REQUEST DBFCDX
RddSetDefault( "DBFCDX" )
USE ( zDBF ) EXCLUSIVE

INDEX ON DTOS(MyDate)+STRTRAN(MyTime,':','') TAG "MY_START" TO &(_cdxname)

greetings by OHR
Jimmy



0
Reply nospam23 (74) 3/4/2011 2:39:24 AM

Il 04/03/2011 3.39, AUGE_OHR ha scritto:
> hi,
>
> i can create this
>
> INDEX ON DTOS(MyDate) TAG "MY_DATE" TO&(_cdxname)
>
> but i fail in
>
> INDEX ON STRTRAN(MyTime,':','') TAG "MY_TIME" TO&(_cdxname)
>
> Index will be create but when try to open DBF with BRO.EXE v2.5
> ( compiled with Cl*pper) i got :
>
> " Structural Index may contain Undefined Tag Expressions"
>
> i knew STRRAN() will "reduce" LEN() of Field "MyTime" ...
> how to make a Cl*pper / Xbase++ compatible Index with DATE() and TIME() ?
>
> REQUEST DBFCDX
> RddSetDefault( "DBFCDX" )
> USE ( zDBF ) EXCLUSIVE
>
> INDEX ON DTOS(MyDate)+STRTRAN(MyTime,':','') TAG "MY_START" TO&(_cdxname)
>
> greetings by OHR
> Jimmy
>
>
>
Hi Jimmy,
I don' know what BRO.EXE is. Probably it does not contain strtran().
Try INDEX ON DTOS(MyDate)+left(Mytime,2)+right(Mytime,2) TAG "MY_START" 
TO&(_cdxname) instead.
Dan
0
Reply retsamtsop (14) 3/4/2011 7:12:58 AM


Il 04/03/2011 3.39, AUGE_OHR ha scritto:
> hi,
>
> i can create this
>
> INDEX ON DTOS(MyDate) TAG "MY_DATE" TO&(_cdxname)
>
> but i fail in
>
> INDEX ON STRTRAN(MyTime,':','') TAG "MY_TIME" TO&(_cdxname)
>
> Index will be create but when try to open DBF with BRO.EXE v2.5
> ( compiled with Cl*pper) i got :
>
> " Structural Index may contain Undefined Tag Expressions"
>
> i knew STRRAN() will "reduce" LEN() of Field "MyTime" ...
> how to make a Cl*pper / Xbase++ compatible Index with DATE() and TIME() ?
>
> REQUEST DBFCDX
> RddSetDefault( "DBFCDX" )
> USE ( zDBF ) EXCLUSIVE
>
> INDEX ON DTOS(MyDate)+STRTRAN(MyTime,':','') TAG "MY_START" TO&(_cdxname)
>
> greetings by OHR
> Jimmy
>
>
>
Hi Jimmy,
I don' know what BRO.EXE is. Probably it does not contain strtran().
Try INDEX ON DTOS(MyDate)+left(Mytime,2)+right(Mytime,2) TAG "MY_START" 
TO&(_cdxname) instead.
Dan
0
Reply retsamtsop (14) 3/4/2011 7:15:06 AM

Il 04/03/2011 3.39, AUGE_OHR ha scritto:
> hi,
>
> i can create this
>
> INDEX ON DTOS(MyDate) TAG "MY_DATE" TO&(_cdxname)
>
> but i fail in
>
> INDEX ON STRTRAN(MyTime,':','') TAG "MY_TIME" TO&(_cdxname)
>
> Index will be create but when try to open DBF with BRO.EXE v2.5
> ( compiled with Cl*pper) i got :
>
> " Structural Index may contain Undefined Tag Expressions"
>
> i knew STRRAN() will "reduce" LEN() of Field "MyTime" ...
> how to make a Cl*pper / Xbase++ compatible Index with DATE() and TIME() ?
>
> REQUEST DBFCDX
> RddSetDefault( "DBFCDX" )
> USE ( zDBF ) EXCLUSIVE
>
> INDEX ON DTOS(MyDate)+STRTRAN(MyTime,':','') TAG "MY_START" TO&(_cdxname)
>
> greetings by OHR
> Jimmy
>
>
>
Hi Jimmy,
I don' know what BRO.EXE is. Probably it does not contain strtran().
Try INDEX ON DTOS(MyDate)+left(Mytime,2)+right(Mytime,2) TAG "MY_START" 
TO&(_cdxname) instead.
Dan
0
Reply retsamtsop (14) 3/4/2011 7:15:45 AM

hi,


> I don' know what BRO.EXE is. Probably it does not contain strtran().

BRO.EXE is like DBU.EXE but enhance mit COMIX / SixDrive etc.
it should, while i can open it with Cl*pper (COMIX) and Xbase++ (FOXCDX)

> Try INDEX ON DTOS(MyDate)+left(Mytime,2)+right(Mytime,2) TAG "MY_START"
> TO&(_cdxname) instead.

aha ... YES ... good Idee.

greetings by OHR
Jimmy



0
Reply nospam23 (74) 3/4/2011 2:12:25 PM

On Mar 3, 7:39=A0pm, "AUGE_OHR" <AUGE_OHR*NOS...@WEB.DE> wrote:
> hi,
>
> i can create this
>
> INDEX ON DTOS(MyDate) TAG "MY_DATE" TO &(_cdxname)
>
> but i fail in
>
> INDEX ON STRTRAN(MyTime,':','') TAG "MY_TIME" TO &(_cdxname)
>
> Index will be create but when try to open DBF with BRO.EXE v2.5
> ( compiled with Cl*pper) i got :
>
> " Structural Index may contain Undefined Tag Expressions"
>
> i knew STRRAN() will "reduce" LEN() of Field "MyTime" ...
> how to make a Cl*pper / Xbase++ compatible Index with DATE() and TIME() ?
>
> REQUEST DBFCDX
> RddSetDefault( "DBFCDX" )
> USE ( zDBF ) EXCLUSIVE
>
> INDEX ON DTOS(MyDate)+STRTRAN(MyTime,':','') TAG "MY_START" TO &(_cdxname=
)

If you have the source code for BRO, then you can add a function in
any module (or just link it in), that have calls to the various
functions you might someday want to call.  This will cause them to be
named in a way that they can be called.  And the wrapper function you
create never has to be called form your code.

Additionally, you can just
REQUEST strtran
.... and get it too.  (I think)

You may want to use DateTime() and TtoS() also, at some point...

David A. Smith
0
Reply dlzc1 (2362) 3/4/2011 3:08:40 PM

5 Replies
27 Views

(page loaded in 0.082 seconds)

Similiar Articles:













7/21/2012 3:30:06 AM


Reply: