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

2»

Comments

  • vaprog
    vaprog Member Posts: 1,163
    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.
  • bangswit
    bangswit 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
  • Duikmeester
    Duikmeester Member Posts: 309
    Uhm filling with spaces... How about the function PADSTR???