CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: [RESOLVED] checking the same values??? why not working

  1. #1
    Join Date
    Jun 2013

    [RESOLVED] checking the same values??? why not working

    Ok this is absolutely mindboggling me, and i have no idea why it is not working, maybe im just being dumb and stupid, but i have tried other expressions.

    Heres the Layout

    9 Textboxes, a Button,
    I want to Check that each row has the same written in it
    I set the text boxes in a Control Array for easier use and reference

    heres what i have but i keep getting a type mismatch, so must be doing something wrong, argh i hate doing things when im tired too but any idea why this is coming up as a mismatch

    btw i wrote a function too in a module if it helps so i could call it easier
    dim state as string
    If  Form1.textinput(0).text And Form1.textinput(1).text = Form1.textinput(2).text  Then
    state = Form1.textinput(0).text
    'To Check if it works
    ' MsgBox (state) 
    End If
    oh dear lord an easy conjunction and i cant get it to work what am i missing pr doing wrong
    Last edited by GremlinSA; June 11th, 2013 at 08:23 AM. Reason: added code tags..

  2. #2
    Join Date
    Jun 2013

    Re: checking the same values??? why not working

    Note to self..... go to bed , sorted out problem when i woke up following morning LOL

  3. #3
    DataMiser is offline Super Moderator Power Poster
    Join Date
    Jul 2008

    Re: [RESOLVED] checking the same values??? why not working

    The issue I assume was the way you were using And
    Always use [code][/code] tags when posting code.

Posting Permissions

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

Windows Mobile Development Center

Click Here to Expand Forum to Full Width

On-Demand Webinars (sponsored)