Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > .NET 1.0 and Visual Studio.NET > VS.NET 2002/2003
|
VS.NET 2002/2003 Discussions about the Visual Studio.NET programming environment, the 2002 (1.0) and 2003 (1.1). ** Please don't post code questions here ** For issues specific to a particular language in .NET, please see the other forum categories.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VS.NET 2002/2003 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 28th, 2004, 12:18 PM
Registered User
 
Join Date: Apr 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to davidkwang
Default public function execute = HELP! Return value ?

<-----code start here--->
Private Sub btnSearchRec_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSearchRec.Click

myConnection.Open()
Dim myExpertSearch As New ExpertSearch
' this is the part troubling me...:(
If myExpertSearch.Execute("Select * from stock", myConnection, 0) = True Then
txtSTOCK_ID.Text = myExpertSearch.FieldValue
End If
myConnection.Close()

End Sub
<-----code end here--->

Here is the situation, I wrote a simple stock control program, yet add function was fine... one thing is the search function where the search function have to be done before update or delete it right?

however, I need help on the blue text part where I need to return all the value from search form, yet eventually I'm able to return one value from one column only... if I put a nested if statement... i have to click 10 times of "ok" in term of all the value can reinsert in to the form where I do all the update and delete function... any clue? or tips... I'm suffering here....






Similar Threads
Thread Thread Starter Forum Replies Last Post
public sub or function ? kscase Visual Basic 2005 Basics 3 May 20th, 2007 03:14 PM
function return 'Nothing' problem srinuRocks ASP.NET 2.0 Basics 0 March 10th, 2005 10:32 AM
execute function whoses name is stored in a variab aliawan Beginning VB 6 5 February 4th, 2005 05:01 AM
How to return array value from a function nebpro BOOK: Beginning PHP4/PHP 5 ISBN: 978-0-7645-4364-7; v5 ISBN: 978-0-7645-5783-5 1 September 29th, 2004 12:14 PM
Return a UDT from a function alex_read Pro VB 6 1 April 23rd, 2004 05:37 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.