mirkado227
Programmer
Say we have a table created like
The index is created with:
KartNr contains binary informations. With the browse command there are displayed as garbage characters. To display them, I have to use e.g. ASC(SubStr(KartNr,1,1)) etc.
Now say:
- in variable cKartNr is a valid CardNumber
- and I try to find the specific record in table Cards
returns all records in Table Cards
But
finds the specific record.
With other words: I found a solution for my problem. But I does not understand the background of this problem. Can someone enlighten me?
Thanks in advance
Code:
CREATE TABLE Cards (KartNr C(6) NOCPTRANS)
The index is created with:
Code:
SET COLLATE TO "machine"
INDEX ON kartnr TAG kartnr_idx
KartNr contains binary informations. With the browse command there are displayed as garbage characters. To display them, I have to use e.g. ASC(SubStr(KartNr,1,1)) etc.
Now say:
- in variable cKartNr is a valid CardNumber
- and I try to find the specific record in table Cards
Code:
SELECT * FROM Cards Where KartNr == cKartNr
But
Code:
=SEEK(cKartNr, "Cards", "KartNr_Idx")
With other words: I found a solution for my problem. But I does not understand the background of this problem. Can someone enlighten me?
Thanks in advance