Passing function with parameters - InfoPath Dev
in

InfoPath Dev

Passing function with parameters

Last post 04-29-2010 06:34 AM by alexia_net. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 04-29-2010 06:12 AM

    Passing function with parameters

    Hi. I have a problem with a function in C#.

    I have declared this function with these parameters:

           Info(a, b, c)

    I have declared it like this:

    public void Info(tmp_a, tmp_b, tmp_c)

    {

    something

    }

    The question is: If I work with  tmp_a, tmp_b, tmp_c and do some changes on them, like assigning new values, when i finish the function, shouldn't a, b, c have the new values? If not so, how do i do that? In visual basi u can use ByRef. What do i use in C#? Thank you!

  • 04-29-2010 06:34 AM In reply to

    Re: Passing function with parameters

     I think i have to use REF. Got it. Thx.

Page 1 of 1 (2 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.