in Delphi the procedure write can handle:
write(TF,st1)
and
write(TF,st1,st2,st3,st4);
I want to declare a procedure that can also do that, what is the syntax?
and the option of:
write(TF,[st1,st2,st3])
is less desirable, though I know how to do that.
the main purpose was to pass ShortString
s into function, that would make a read call from file, and would read at the length of the shortString
as defined. however after passing it as variant or in open array the shortString
loses its "size" and become 255, which making this pass unusable, for me.
but the answer is still got if you want to pass open array.