I face a issue is when my program call out the sub function my sub function is not effect but it can running on button effect. RRS feed

  • General discussion

  • I create generate id program. it only can running on user add new data function but when i put it as private function or sub function it will no effect when i running my program. i solve long time still no success solve it can someone pls advise me.
    Tuesday, August 6, 2019 6:11 AM

All replies

  • There is no such thing as a "sub function", a sub is a procedure. Change Private to Public, see what happens.

    Please remember to mark the replies as answers if they help and unmarked them if they provide no help, this will help others who are looking for solutions to the same or similar problem. Contact via my Twitter (Karen Payne) or Facebook (Karen Payne) via my MSDN profile but will not answer coding question on either.

    NuGet BaseConnectionLibrary for database connections.

    profile for Karen Payne on Stack Exchange

    Tuesday, August 6, 2019 11:18 AM
  • Christing,

    In general used programming language.

    A Sub is a method which does not return a value. Sometimes called a void function.

    A Function is a method which always returns at least one value. 

    However, if there goes something different then you expect it should do, then at least you have to tell what it in your opinion must do. 


    Tuesday, August 6, 2019 3:25 PM
  • @KAREN 

    i find the solution to solve my problem already...thanks you take time to read my message.

    • Edited by christing Thursday, August 8, 2019 8:40 AM
    Wednesday, August 7, 2019 6:14 AM