If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Visual Basic > Passing a value from Class to calling Form

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-09-09, 01:58
SnehaAgrawal SnehaAgrawal is offline
Registered User
 
Join Date: Mar 2009
Posts: 42
Question 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.
Reply With Quote
  #2 (permalink)  
Old 10-09-09, 07:35
gvee gvee is offline
www.gvee.co.uk
 
Join Date: Jan 2007
Location: UK
Posts: 10,156
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
Twitter | Blog
Reply With Quote
  #3 (permalink)  
Old 10-24-09, 07:03
SnehaAgrawal SnehaAgrawal is offline
Registered User
 
Join Date: Mar 2009
Posts: 42
thnks for your reply it worked...
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On