Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Visual Basic Question

Visual Basic Question

Scheduled Pinned Locked Moved C / C++ / MFC
tutorialquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Stylemaster
    wrote on last edited by
    #1

    Hey there I've just started to learn programming and using visual basic 6 (teaching myself) would really appreciate it if someone could explain to me how it is that variables work and exactly how to use them as this part has got me stumped. Thanx a million Style Work hard, Play hard

    H 1 Reply Last reply
    0
    • S Stylemaster

      Hey there I've just started to learn programming and using visual basic 6 (teaching myself) would really appreciate it if someone could explain to me how it is that variables work and exactly how to use them as this part has got me stumped. Thanx a million Style Work hard, Play hard

      H Offline
      H Offline
      Hesham Amin
      wrote on last edited by
      #2

      since this is a VB6 Q. you should send it to the vb forum not vc++ anyway : you use variables to store some data in memory for processing... for example..

      dim a as single
      dim b as single
      dim c as single 'here i made 3 place holders in memory for single variables.
      
      a=CSng(Text1.Text) 'read data from Text1 into memory location called a
      b=CSng(Text2.Text) 'read data from Text1 into memory location called b
      c=(a+b)/2 'get the avarage of the two numbers and store it in c for latter use
      
      MsgBox c 'use the variable c
      
      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups