read text file from excel

bangswitbangswit Member Posts: 265
hi all, i have document no = 12345
but in excel buffer it is 12,345
how to make it become 12345
my code is like this (failed)
EBDoc.RESET;
EBDoc.SETRANGE(EBDoc."Row No.",RowNo);
EBDoc.SETRANGE(EBDoc."Column No.",11);
IF EBDoc.FIND('-') THEN
PL."Document No.":=FORMAT(EBDoc."Cell Value as Text");
PL.VALIDATE(PL."Document No.");

Answers

  • HanenHanen Member Posts: 281
    Hi,

    you should read the cell value and eliminate the "," SOMETHING LIKE SUBSTR
    Regards

    Hanen TALBI
  • rhpntrhpnt Member Posts: 688
    Check the cell format of your Excell sheet (it should be text) and the value of the field.
  • bangswitbangswit Member Posts: 265
    rhpnt wrote:
    Check the cell format of your Excell sheet (it should be text) and the value of the field.
    yes
    that's right
    i chance the excel file and it works
    thanks :)
Sign In or Register to comment.