#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2003
    Location
    Montreal, Canada
    Posts
    486
    Rep Power
    12

    Question Pointers in Vb.Net -byval,byref no use ?


    It's not really important but it's something I was wondering while I am watching the code I am using that was done bysomeone else.

    I think .NET when compiling will check and modify the byval, byref !?

    Cause, there is a textbox that is passed to another function in another module with a ByVal. then the value Enabled is changed and that's it's. Soo because it's a byval it should the value in the form should not be changed but it's have changed like if it was a byref.

    soo I think .Net is assuming what you are trying to do. Because there is kinda no use of a textbox in a another function other then modify it, it's just change it.

    am I wrong ?

    I am still sick still got some hallucination this night , soo my brain is not working at 100%, i might have some problems to understand some of the things or it's another hallucination .
    Last edited by Watever; November 12th, 2003 at 11:46 AM.

IMN logo majestic logo threadwatch logo seochat tools logo