Hi,

Przemysław Czerpak wrote:
the following sample prints:
C:\cawi32\sample\test>hbrun test194.prg
ORDNAME(0), ORDKEY(0): F F

Looks correct for me.
What is the bug?

As far as I understand zero order means no order, and should return an empty key and empty order name.

Code:
  FOR nI := 0 TO ORDCOUNT()
    ? nI, ORDNAME(nI), ORDKEY(nI), ORDNUMBER(ORDNAME(nI))
  NEXT
executed before OrdCreate() prints correct result for zero order:
         0            0
but the same code executed after OrdListAdd() returns key 'F' for both zero and first index:
         0 F F          1
         1 F F          1


Regards,
Mindaugas
_______________________________________________
Harbour mailing list (attachment size limit: 40KB)
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to