How can I pass arguments from my procedure to a call of write called inside ?
Something quite like that:
procedure smth (args: alltypes);
begin
write(args);
end;
How can I pass arguments from my procedure to a call of write called inside ?
Something quite like that:
procedure smth (args: alltypes);
begin
write(args);
end;
Kryštof Řeháček
On
For example:
procedure write( text : string );
begin
write( text );
end;
But if you want to override your function. You have to read that topic HERE. That will allow you to make function with more type of arguments.
If you want to use your function with any number/type of argument in
Writemanner, likesmth(3, 'aaa', 5.6)- it is impossible as i know. However you can usearray of ...type for argument to pass to the procedure any number of arguments.Here is an example: