sub programs - Programmers Heaven

Howdy, Stranger!

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

Categories

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

sub programs

Could someone send me the information on how to start the sub programs without making a template. I would sure appreciate it.
please email [email protected]
Debbie

Comments

  • DrMartenDrMarten Posts: 748Member
    : Could someone send me the information on how to start the sub programs without making a template. I would sure appreciate it.
    : please email [email protected]
    : Debbie
    :
    Yeah is if your sub is called mySub then just write the line

    mySub

    in your code on a separate line, all on it's own.
    You might have to write it with brackets like>>

    mySub()


    Regards,

    Dr M.

  • kittywaltzkittywaltz Posts: 12Member
    : : Could someone send me the information on how to start the sub programs without making a template. I would sure appreciate it.
    : : please email [email protected]
    : : Debbie
    : :
    : Yeah is if your sub is called mySub then just write the line
    :
    : mySub
    :
    : in your code on a separate line, all on it's own.
    : You might have to write it with brackets like>>
    :
    : mySub()
    :
    :
    : Regards,
    :
    : Dr M.
    :
    :

  • DrMartenDrMarten Posts: 748Member
    [b][red]This message was edited by DrMarten at 2006-2-25 12:20:19[/red][/b][hr]

    If your sub is as follows>

    sub addTwoNumbers(number1,number2)

    'Code in here.

    End sub

    Then call it with>>

    CALL addTwoNumbers(number1,number2)

    In the CALL statement you dont have to use the same variable names.

    Regards,

    Dr M.

    P.S. All of this sort of thing is in the help files as examples.
    Just look things up and try to figure them out for yourself.
    By the way i am studying VisualBasic.Net ( VB.Net ) and i am teaching myself ( to some extent ) by looking at the examples, i am also doing VB.Net at university.


    Regards,

    Dr M.



Sign In or Register to comment.