how to set StartPos (like in dataport) in CodeUnit?

2»

Comments

  • vaprogvaprog Member Posts: 1,139
    Dataport does not allow you to read records accross more than one line unless there is some other record seperator you can set up.
    However, reading from fixed positions is easy from C/AL using file.SEEK or counting bytes read and reading "filling" bytes to a temporary buffer.
    You cannot reuse the code for reading though, you need to program writing again from scratch.
  • bangswitbangswit Member Posts: 265
    so i must use codeunit then

    by the way, do any of you have any sample for import data using codeunit?
    thanks
  • DuikmeesterDuikmeester Member Posts: 304
    Uhm filling with spaces... How about the function PADSTR???
Sign In or Register to comment.