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. Visual Basic
  4. structure

structure

Scheduled Pinned Locked Moved Visual Basic
c++question
4 Posts 3 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.
  • P Offline
    P Offline
    pnpfriend
    wrote on last edited by
    #1

    how can i declare structure in VB I know that in C++ struct egStruct { int a; int b; }; void main() { egStruct egS; egS.a = 2; egS.b = 6; } is it Private Type egStruct Dim a As Integer,b As Integer End Type thanks

    J A P 3 Replies Last reply
    0
    • P pnpfriend

      how can i declare structure in VB I know that in C++ struct egStruct { int a; int b; }; void main() { egStruct egS; egS.a = 2; egS.b = 6; } is it Private Type egStruct Dim a As Integer,b As Integer End Type thanks

      J Offline
      J Offline
      Jeremy Falcon
      wrote on last edited by
      #2

      In Visual Basic 6.0...

      Public Type egStruct
      a As Integer
      b As Integer
      End Type

      In Visual Basic .NET...

      Structure egStruct
      Public a As Integer
      Public b As Integer
      End Structure

      Jeremy Falcon Imputek

      1 Reply Last reply
      0
      • P pnpfriend

        how can i declare structure in VB I know that in C++ struct egStruct { int a; int b; }; void main() { egStruct egS; egS.a = 2; egS.b = 6; } is it Private Type egStruct Dim a As Integer,b As Integer End Type thanks

        A Offline
        A Offline
        Abbas_Riazi
        wrote on last edited by
        #3

        Hi, As follow: Type egStruct A As Integer B As Integer End Type A. Riazi

        1 Reply Last reply
        0
        • P pnpfriend

          how can i declare structure in VB I know that in C++ struct egStruct { int a; int b; }; void main() { egStruct egS; egS.a = 2; egS.b = 6; } is it Private Type egStruct Dim a As Integer,b As Integer End Type thanks

          P Offline
          P Offline
          pnpfriend
          wrote on last edited by
          #4

          Thank you both

          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