>>lcFile is incomplete. It either has to start with '\\" for UNC or with drive letter 'X:\'
>>
>>>lcFile = '\POS\PDA\PDADATA_20100513_123401.TXT'
>>>
>>>lnLength = 16001
>>>
>>>lcNABP = '7871801'
>>>
>>>Thanks!
>
>I changed the code to put the SYS(5) to the front of lcfile -> 'C:\POS\PDA\PDADATA_20100513_123401.TXT''
>
>Same ole result again... same error.... (I double checked and made sure that clsEncryption.dll was registered on the PC).
Are you sure that the lnLength is not the length of the lcFile? ot the length of the lcNABP?
Something like:
lcFile = 'C:\POS\PDA\PDADATA_20100513_123401.TXT'
lnLength = LEN(lcFile)
lcNABP = '7871801'
.....
or
lcFile = 'C:\POS\PDA\PDADATA_20100513_123401.TXT'
lcNABP = '7871801'
lnLength = LEN(lcNABP)
.....
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.