Click here to Skip to main content
15,921,959 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Joining arrays Pin
Mbire11-Oct-07 1:42
Mbire11-Oct-07 1:42 
AnswerRe: Joining arrays Pin
Dave Kreskowiak11-Oct-07 3:50
mveDave Kreskowiak11-Oct-07 3:50 
QuestionA Function that Accept Parameters and Return ds Pin
Vimalsoft(Pty) Ltd11-Oct-07 0:24
professionalVimalsoft(Pty) Ltd11-Oct-07 0:24 
AnswerRe: A Function that Accept Parameters and Return ds Pin
Colin Angus Mackay11-Oct-07 0:30
Colin Angus Mackay11-Oct-07 0:30 
GeneralRe: A Function that Accept Parameters and Return ds Pin
Christian Graus11-Oct-07 0:44
protectorChristian Graus11-Oct-07 0:44 
GeneralRe: A Function that Accept Parameters and Return ds Pin
Vimalsoft(Pty) Ltd11-Oct-07 0:44
professionalVimalsoft(Pty) Ltd11-Oct-07 0:44 
GeneralRe: A Function that Accept Parameters and Return ds Pin
Colin Angus Mackay11-Oct-07 2:20
Colin Angus Mackay11-Oct-07 2:20 
GeneralRe: A Function that Accept Parameters and Return ds Pin
Vimalsoft(Pty) Ltd11-Oct-07 2:36
professionalVimalsoft(Pty) Ltd11-Oct-07 2:36 
Sorry about that. the Adapter Property SelectedCommand will do i know. its just that i moved to OOPS and N-tier Development, so the Classes confused me a lot, but i got the Answer. i have a Function in my DAL layer. coded like this

Public Function GetdataProperties_lissearch(ByVal strSearched As String) As DataSet

    Dim dsdata As dssearchlis
    Try
        dsdata = New dssearchlis
        dasearchlis.SelectCommand.Parameters("@Lis_key").Value = strSearched

        dasearchlis.Fill(dsdata)
        If dsdata.Tables("Property_Mass").Rows.Count = 0 Then
            MsgBox("Township not Found", MsgBoxStyle.OKOnly, "Warning")
        Else
            dsdata.Clear()
            dasearchlis.Fill(dsdata)
            Return dsdata

        End If
    Catch ex As SqlClient.SqlException
        MsgBox(ex.Message)
    End Try
    Return dsdata
End Function



And am Calling this Function from the BLL and here is the Code that is Call this Function from a BLL

Public Function Getdata_Lis_search(ByVal strSearched As String) As DataSet


    Dim ws As PropDAL.Properties
    Dim dsdata As DataSet

    Try
        ws = New PropDAL.Properties
        dsdata = New DataSet
        dsdata = ws.GetdataProperties_lissearch(strSearched)
        Return dsdata

    Catch ex As SqlClient.SqlException

        MsgBox(ex.Message)

    End Try

End Function


And in my Form Search button am Calling the Fuction in the BLL like this


mResvalue = txtlisSearch.Text

 Dim objBUs As ProBusiness.Properties
 Try
     mdsprops_lis = New PropDAL.dssearchlis

     objBUs = New ProBusiness.Properties
     objBUs.Getdata_Lis_search(Resvalue)
     mdsprops_lis = objBUs.Getdata_Lis_search(mResvalue)

     dgr.DataMember = "Property_Mass"
     dgr.DataSource = mdsprops_lis

 Catch ex As SqlClient.SqlException
     MessageBox.Show(ex.Message)

 End Try



And Another module level dataset inheriting from DAL, i dont know if this is the Good idea, because everything should not bypass BLL ,

Private mdsprops_lis As PropDAL.dssearchlis


PLease comment on this one, because it gives me Errors when i instatiate from BLL

Thanks again Colin

but everything is working fine. Smile | :)





and i have Declared module level string Variables

Vuyiswa Maseko,

Sorrow is Better than Laughter, it may Sudden your Face, but It sharpens your Understanding

VB.NET/SQL7/2000/2005
http://vuyiswamb.007ihost.com
http://Ecadre.007ihost.com
vuyiswam@tshwane.gov.za


GeneralRe: A Function that Accept Parameters and Return ds Pin
Colin Angus Mackay11-Oct-07 2:50
Colin Angus Mackay11-Oct-07 2:50 
GeneralRe: A Function that Accept Parameters and Return ds Pin
Vimalsoft(Pty) Ltd11-Oct-07 3:09
professionalVimalsoft(Pty) Ltd11-Oct-07 3:09 
Questionsetting up Crystal Pin
twsted f811-Oct-07 0:21
twsted f811-Oct-07 0:21 
AnswerRe: setting up Crystal Pin
ChandraRam11-Oct-07 2:11
ChandraRam11-Oct-07 2:11 
Question()_send email in visual studio .net 2005 Pin
Suhail Ali10-Oct-07 21:39
Suhail Ali10-Oct-07 21:39 
AnswerRe: ()_send email in visual studio .net 2005 Pin
Christian Graus10-Oct-07 22:25
protectorChristian Graus10-Oct-07 22:25 
Questiondoubts in abstract class and interface Pin
VG Ramanan10-Oct-07 21:26
VG Ramanan10-Oct-07 21:26 
AnswerRe: doubts in abstract class and interface Pin
Christian Graus10-Oct-07 22:27
protectorChristian Graus10-Oct-07 22:27 
Questionvb.net localized Pin
ganash10-Oct-07 21:20
ganash10-Oct-07 21:20 
AnswerRe: vb.net localized Pin
Christian Graus10-Oct-07 22:28
protectorChristian Graus10-Oct-07 22:28 
Questioneliminate the space Pin
ganash10-Oct-07 21:15
ganash10-Oct-07 21:15 
AnswerRe: eliminate the space Pin
nishkarsh_k10-Oct-07 21:51
nishkarsh_k10-Oct-07 21:51 
GeneralRe: eliminate the space Pin
ganash11-Oct-07 1:04
ganash11-Oct-07 1:04 
GeneralRe: eliminate the space Pin
Luc Pattyn11-Oct-07 1:16
sitebuilderLuc Pattyn11-Oct-07 1:16 
GeneralRe: eliminate the space Pin
nishkarsh_k11-Oct-07 20:00
nishkarsh_k11-Oct-07 20:00 
QuestionOpen VB.Net form from vb6 Pin
QPun10-Oct-07 20:58
QPun10-Oct-07 20:58 
AnswerRe: Open VB.Net form from vb6 Pin
Christian Graus10-Oct-07 22:29
protectorChristian Graus10-Oct-07 22:29 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.