>Hi,
>Thank you for your help.
>
>My key is cName C(25)+cBrNum C(3)+cBrName C(20)
>
>Yes, all SEEK, SEEK() and INDEXSEEK() are failing.
>
>The value of lcTxtVal is "William 003Woodland Hills " 48 chars long.
>
>This is what is shown in the Watch window of the debugger.
>
>I don't understand why it doesn't find it? I know it does exist in the dbf, 100% sure (verified).
>
>Again, thanks for your help.
Reread what I'm saying. Your key would fail because it's checking for :
'William 003Woodland Hills'
Try this instead :
lcTxt = padr('William',25)+padr('003',3)+'Woodland Hills'
PS: If I'm misinterpreting what you say and actually padding, then also consider casing. Your key should be something like upper(...). If so upper(lcTxtVal) too.
Cetin