VB 6 newbie menu

Shout-Out

User Tag List

Thread: VB 6 newbie

Results 1 to 5 of 5
  1. #1
    lolicon123's Avatar Member
    Reputation
    1
    Join Date
    Oct 2008
    Posts
    31
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    VB 6 newbie

    just installed VB 6.0 and have some problem
    so i have 2 textboxes that are named text1 and text2 and i wrote

    text1.Text = intTal
    text2.Text = strSvar

    If intTal < 20 Then strSvar = OK Else istrSvar = NOP

    but something is wrong nothing is displayed in strSvar if write a number lower or higher then 20 :I

    i did write this as a function for a command button so that is not the problem

    VB 6 newbie
  2. #2
    ReidE96's Avatar Archer Authenticator enabled
    Reputation
    470
    Join Date
    Dec 2006
    Posts
    1,625
    Thanks G/R
    1/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    If you're trying to set the text of the textboxes to the strings, that first bit is fine, otherwise swap the sides. As for If intTal < 20 Then strSvar = OK Else istrSvar = NOP, OK should be "OK" and NOP should be "NOP" (the "" around the text because it's a string). Oh, and declare the variables somewhere.

  3. #3
    mmwoot's Avatar Member
    Reputation
    1
    Join Date
    Nov 2008
    Posts
    7
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Dim strSvar as boolean
    Dim intTal as integer

    intTal= text1.text


    if intTal < 20 Then
    strSvar = True
    Else
    strSvar = False
    End if

    text2.text=strSvar

  4. #4
    lolicon123's Avatar Member
    Reputation
    1
    Join Date
    Oct 2008
    Posts
    31
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thanks for the help

  5. #5
    ReidE96's Avatar Archer Authenticator enabled
    Reputation
    470
    Join Date
    Dec 2006
    Posts
    1,625
    Thanks G/R
    1/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    intTal= CInt(text1.text)

    Otherwise it'll be confused

Similar Threads

  1. Im a newbie here and wanna thank evry one
    By blahdie in forum World of Warcraft General
    Replies: 11
    Last Post: 04-02-2007, 12:28 AM
  2. TBC Newby Guide
    By wtfx in forum World of Warcraft Guides
    Replies: 3
    Last Post: 03-29-2007, 03:56 PM
  3. The Newbie Guide
    By Bossman4 in forum World of Warcraft Guides
    Replies: 12
    Last Post: 11-07-2006, 09:55 PM
  4. Newbie Guide To World of Warcraft
    By Snor11 in forum World of Warcraft Guides
    Replies: 4
    Last Post: 11-02-2006, 03:31 AM
  5. Help Please im a newbie
    By phoenix in forum World of Warcraft General
    Replies: 3
    Last Post: 07-14-2006, 09:29 AM
All times are GMT -5. The time now is 12:51 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search