In the same way that predefined procedures such as writeln, I want to be able to write a procedure with a variable number of parameters ... I've done some searching and only found references that a variable number of arguments can be used but can't find out how. Apologies if this is a dumb question. I've been out of programming since 1988.
procedure menu (mo1,mo2,...mof:String; var menuoption:word);
{ mo=menu option. }
begin
gotoxy(x,y ); write(mo1);
gotoxy(x,y+1 ); write(mo2);
...
gotoxy(x,y+f-1); write(mo1);
readln(menuoption);
end;