2219 Operand or expression expected

  • Hi!


    I am trying to pass a string to a function which results in an error, can someone help me? I am stuck



    Thanks! :smiling_face:

  • This way of passing parameters would work in all proper programing languages, KRL is not one of them. Arrays in KRL are mucky to begin with, two dimensional arrays just add to it. As far I understood, in KRL a row of two dimensional string is not the same as a single dimension array. I handle string arrays by making a structure, that has char array and make an array out of those, e.g.


    struc TString200 char Text[200]


    and then

    decl TString200[100]


    Not as straightforward, but much more wieldy.

Advertising from our partners