More Than One Parameter - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

More Than One Parameter

sad.boysad.boy Posts: 90Member
check this out

[code]
procedure add(i:integer);
begin
end;
[/code]
this procedure only accepts one parameter called i
now what i want to do is that to send an integer and A STRING to
the procedure,could u tell me the sysntax?
something like
procedure add(i:integer,s:string);
begin
end;
ofcourse it's wrong i tried it out ;)

thanks in advance






Comments

  • zibadianzibadian Posts: 6,349Member
    : check this out
    :
    : [code]
    : procedure add(i:integer);
    : begin
    : end;
    : [/code]
    : this procedure only accepts one parameter called i
    : now what i want to do is that to send an integer and A STRING to
    : the procedure,could u tell me the sysntax?
    : something like
    : procedure add(i:integer,s:string);
    : begin
    : end;
    : ofcourse it's wrong i tried it out ;)
    :
    : thanks in advance
    :
    :
    :
    Parameters must be separated by a semicolon:
    [code]
    procedure add(i: integer; s: string);
    [/code]
Sign In or Register to comment.