2008-09-19 12:21 UTC+0100 Miguel Angel Marchuet <[EMAIL PROTECTED]>
  * contrib/hbbmcdx/bmdbfcdx.c
  * source/rdd/dbfcdx/dbfcdx1.c
    ! fixed return value after rt error.
    * Added rt error as in clipper when OrdkeyVal is greater than 240, with 
default
      capabilities as in clipper.
    code to test it:
        FUNCTION MAIN()

            LOCAL i
            LOCAL nSec := SECONDS()

            REQUEST DBFCDX
            RddSetDefault( "DBFCDX" )

            DBCREATE( "__MYTEST", { { "test", "C", 241, 0 } } )

            USE __MYTEST
            INDEX ON FIELD->Test TO __MYTEST

            FOR i := 1 TO 10
                APPEND BLANK
                FIELD->test := Replicate( "1", 240 ) + Str( 10 - i, 1 )
            NEXT

            DbGoTop()
            ? &(OrdKey())
            ? "Length of &(OrdKey()) :" + Str( Len( &(OrdKey()) ) )
            ? OrdKeyVal()
            ? "Length of OrdKeyVal() :" + Str( Len(OrdKeyVal()) )
            WHILE ! EOF()
              ? Right( FIELD->Test, 1 )
              DbSkip()
            ENDDO

            USE
            FERASE( "__MYTEST.DBF" )
            FERASE( "__MYTEST.CDX" )

        RETURN NIL


Best regards,
Miguel Angel marchuet
_______________________________________________
Harbour mailing list
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to