Click here to Skip to main content
15,919,434 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: moving folders and files across network Pin
Dave Kreskowiak18-Nov-08 1:51
mveDave Kreskowiak18-Nov-08 1:51 
Questiondatagridview with BLL middle-tier Pin
Fahim A17-Nov-08 12:09
Fahim A17-Nov-08 12:09 
AnswerRe: datagridview with BLL middle-tier Pin
Mycroft Holmes17-Nov-08 15:02
professionalMycroft Holmes17-Nov-08 15:02 
GeneralRe: datagridview with BLL middle-tier Pin
Fahim A17-Nov-08 18:34
Fahim A17-Nov-08 18:34 
AnswerRe: datagridview with BLL middle-tier Pin
Vimalsoft(Pty) Ltd17-Nov-08 19:56
professionalVimalsoft(Pty) Ltd17-Nov-08 19:56 
GeneralRe: datagridview with BLL middle-tier Pin
Fahim A18-Nov-08 10:52
Fahim A18-Nov-08 10:52 
GeneralRe: datagridview with BLL middle-tier Pin
Vimalsoft(Pty) Ltd18-Nov-08 19:15
professionalVimalsoft(Pty) Ltd18-Nov-08 19:15 
GeneralRe: datagridview with BLL middle-tier Pin
Fahim A18-Nov-08 22:19
Fahim A18-Nov-08 22:19 
Hi Vuyiswa

I have the BLL and DAL all in codes in class objects. Although I have managed to convert your design time controls like datasets and adapters to codes. I am having difficulty in making the following CheckRules codes to work with my datasets in class objects.

I understand the DAL is Prop_DAL but don't know what to substitue for dsProperty and also Dim row As Prop_DAL.dsProperty.ClientsRow

Can you please clear out this for me.
Private Sub CheckRules(ByVal dsdata As Prop_DAL.dsProperty)
        Dim strMsg As String
        Dim row As Prop_DAL.dsProperty.ClientsRow
        'Iterating through the Dataset and Checking the Rules
        For Each row In dsdata.Clients.Rows
            If row.RowState = DataRowState.Added Or _
            row.RowState = DataRowState.Modified Then
                'Start Checking the Rules now
                If row.Client_Name.Trim = "" Then
                    MsgBox("Name Cannot be Empty")
                End If
                If row.Client_Address = "" Then
                    MsgBox("Address Cannot be Empty")

                End If
                If row.Client_ID.ToString.Length > 13 Then
                    MsgBox("ID number must less than 13")

                End If

            End If

        Next
        If strMsg <> "" Then
            'throw a new ApplicationException
            'with our Custom Error message in it
            Throw New ApplicationException(strMsg)
        End If

    End Sub

GeneralRe: datagridview with BLL middle-tier Pin
Vimalsoft(Pty) Ltd20-Nov-08 19:09
professionalVimalsoft(Pty) Ltd20-Nov-08 19:09 
GeneralRe: datagridview with BLL middle-tier Pin
Fahim A24-Nov-08 19:15
Fahim A24-Nov-08 19:15 
GeneralRe: datagridview with BLL middle-tier Pin
Vimalsoft(Pty) Ltd24-Nov-08 19:18
professionalVimalsoft(Pty) Ltd24-Nov-08 19:18 
QuestionReturning String Array Values from a function....HELP!!! Pin
Herrwolf117-Nov-08 10:20
Herrwolf117-Nov-08 10:20 
AnswerRe: Returning String Array Values from a function....HELP!!! Pin
nlarson1117-Nov-08 10:30
nlarson1117-Nov-08 10:30 
GeneralRe: Returning String Array Values from a function....HELP!!! Pin
Herrwolf117-Nov-08 11:08
Herrwolf117-Nov-08 11:08 
AnswerRe: Returning String Array Values from a function....HELP!!! Pin
jzonthemtn17-Nov-08 11:13
jzonthemtn17-Nov-08 11:13 
AnswerRe: Returning String Array Values from a function....HELP!!! PinPopular
Dave Kreskowiak17-Nov-08 11:20
mveDave Kreskowiak17-Nov-08 11:20 
QuestionWhat's the name of this object?? Pin
keepcoller17-Nov-08 7:36
keepcoller17-Nov-08 7:36 
AnswerRe: What's the name of this object?? Pin
Wendelius17-Nov-08 8:06
mentorWendelius17-Nov-08 8:06 
AnswerRe: What's the name of this object?? Pin
Pedram Behroozi17-Nov-08 8:11
Pedram Behroozi17-Nov-08 8:11 
GeneralRe: What's the name of this object?? Pin
keepcoller17-Nov-08 14:05
keepcoller17-Nov-08 14:05 
QuestionIs it possible to compile against .Net 2.0 and 2.1 framework versions in VS 2008? Pin
Jon_Boy17-Nov-08 5:02
Jon_Boy17-Nov-08 5:02 
AnswerRe: Is it possible to compile against .Net 2.0 and 2.1 framework versions in VS 2008? Pin
Dave Kreskowiak17-Nov-08 5:21
mveDave Kreskowiak17-Nov-08 5:21 
GeneralRe: Is it possible to compile against .Net 2.0 and 2.1 framework versions in VS 2008? Pin
Jon_Boy17-Nov-08 6:18
Jon_Boy17-Nov-08 6:18 
AnswerRe: Is it possible to compile against .Net 2.0 and 2.1 framework versions in VS 2008? Pin
Guffa17-Nov-08 6:44
Guffa17-Nov-08 6:44 
GeneralRe: Is it possible to compile against .Net 2.0 and 2.1 framework versions in VS 2008? Pin
Jon_Boy17-Nov-08 7:22
Jon_Boy17-Nov-08 7:22 

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.