Results 1 to 3 of 3
  1. #1
    Join Date
    Mar 2009
    Posts
    47

    Question Unanswered: Passing a value from Class to calling Form

    Hi,See if someone could help me with the following.I have Vb form which calls a subroutine in class which connects to Database.A value is returned from my Stored proc. How can I display the returned value in my VB form.

    I am using .net framework and SQL2000
    The hierarchy goes the following way
    Form--->Class subroutine--->Stored proc. in Database.

    how can I do the following
    value to be printed <---- class subroutine <---- value from stored proc.

  2. #2
    Join Date
    Jan 2007
    Location
    UK
    Posts
    11,434
    Provided Answers: 10
    Why don't you change the subroutine in to a function so that it can return the value?

    I believe you can then bind your control to the function directly
    George
    Home | Blog

  3. #3
    Join Date
    Mar 2009
    Posts
    47
    thnks for your reply it worked...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •