beingtopper.jkp@gmail.com
+91-7529019575
Free Demo

Being Topper

  • Home
  • About Us
    • Founder’s Profile
    • Franchise
    • Women’s Entrepreneurship Development
  • Blog & Events
  • Modules
    • Website Planning and Creation
    • Social Media Marketing Course
    • Search Engine Optimization
    • SEM/PPC Training
  • Branches
    • Rajasthan
      • Ajmer
      • Jaipur
      • Jodhpur
      • Udaipur
      • Kota
      • Sikar
    • Janakpuri
    • Tilak Nagar
    • Noida
    • Chandigarh
    • Mumbai
  • Contact Us

Being Topper

  • Home
  • About Us
    • Founder’s Profile
    • Franchise
    • Women’s Entrepreneurship Development
  • Blog & Events
  • Modules
    • Website Planning and Creation
    • Social Media Marketing Course
    • Search Engine Optimization
    • SEM/PPC Training
  • Branches
    • Rajasthan
      • Ajmer
      • Jaipur
      • Jodhpur
      • Udaipur
      • Kota
      • Sikar
    • Janakpuri
    • Tilak Nagar
    • Noida
    • Chandigarh
    • Mumbai
  • Contact Us
  • Home
  • About Us
    • Founder’s Profile
    • Franchise
    • Women’s Entrepreneurship Development
  • Blog & Events
  • Modules
    • Website Planning and Creation
    • Social Media Marketing Course
    • Search Engine Optimization
    • SEM/PPC Training
  • Branches
    • Rajasthan
      • Ajmer
      • Jaipur
      • Jodhpur
      • Udaipur
      • Kota
      • Sikar
    • Janakpuri
    • Tilak Nagar
    • Noida
    • Chandigarh
    • Mumbai
  • Contact Us

Being Topper

  • Home
  • About Us
    • Founder’s Profile
    • Franchise
    • Women’s Entrepreneurship Development
  • Blog & Events
  • Modules
    • Website Planning and Creation
    • Social Media Marketing Course
    • Search Engine Optimization
    • SEM/PPC Training
  • Branches
    • Rajasthan
      • Ajmer
      • Jaipur
      • Jodhpur
      • Udaipur
      • Kota
      • Sikar
    • Janakpuri
    • Tilak Nagar
    • Noida
    • Chandigarh
    • Mumbai
  • Contact Us
BCA NOTES

VBScript Full Program for structure | Structure in VBScript

Being Topper Admin 18/01/2014 0 Comments

Before Writing a program for structure in VBScript we have to know what is a structure .? A structure is a generalization of the user-defined type (UDT) supported by previous versions of Visual Basic (VB). In addition to fields, structures can expose properties, methods, and events. A structure can implement one or more interfaces, and you can declare individual access levels for each field.

 

You can combine data items of different types to create a structure in VBscript. A structure link one or more elements with each other and with the structure itself. When you declare a structure in VBScript, it becomes a composite data type, and you can declare variables of that type.

Structures in VB Script are useful when you want a single variable to hold several related pieces of information. For example, you might want to keep a student’s name, telephone extension, and fee together. You could use several variables for this information, or you could define a structure and use it for a single student variable. The advantage of the structure becomes apparent when you have many students and therefore many instances of the variable.

 

Write a program for structures in VB Script

 

Here is a full VBScript Program for structure but if You Don’t Basics About Structures

we recommend you to check Basics First about Structures in VBScript  :

 

How to: Declare a Structure in VBScript
Shows how to declare a structure and its elements.

VB Script Structure Variables
Covers assigning a structure to a variable and accessing its elements.

VBScript Structures and Other Programming Elements
Summarizes how structures interact with arrays, objects, procedures, and each other.

VBScript Structures and Classes
Describes the similarities and differences between structures and classes.

 

Vbscript Program for Structure :

Imports System.Console

Module Module1

Structure student
Public rollno As Integer
Public name As String
Public Sub display()
WriteLine("The roll No. Is : " & rollno)
WriteLine("The Name is : " & name)
End Sub
Public Sub New(ByVal r As Integer, ByVal n As String)
name = n
rollno = r
End Sub
End Structure

Sub Main()
Dim x As Integer
Dim y As String
WriteLine("Enter Your Name : ")
y = ReadLine()
WriteLine("Enter Your Rollno. : ")
x = ReadLine()
Dim s1 As student = New student(x, y)
s1.display()

End Sub

End Module

 

OUTPUT of VB Script Program For Structure :

VBscript  program for structures.

AboutBeing Topper
"Being Topper, established in 2013, is a premier Digital Marketing Training institute Known for its specializing in digital marketing courses in Delhi. At Being Topper, our carefully crafted training programs are designed to offer learners the practical skills and knowledge essential for a thriving career in today's digital space. Led by certified professionals, the institute delivers top-rated courses that cover key areas, including Social Media Marketing, Pay-Per-Click advertising, content marketing and SEO. With hands-on projects and a focus on industry-specific practices, Being Topper prepares individuals to become effective digital marketing professionals, ready to excel in an increasingly digital-centric world
In Socials:
Prevc++ program to perform naive string matching25/05/2013
program on break apart a number in java18/02/2014Next

Related Posts

BCA NOTES

Write a program to demonstrate Constructors and Destructors in VB.net.

WAP to Demonstrate Constructors and Destructors in VB.net.   Imports...

Being Topper Admin 17/10/2014
B.tech notesBCA NOTESInformation technologyJava ProgramsPrograms/Algorithm

java program to make a GUI based calculator using frames

we are going to make a calculator’s gui … (more…)

Being Topper Admin 01/04/2014
Categories
Recent Posts
  • Vipin Khuttel Inspires Entrepreneurs at Networking Meet in Gurgaon
  • Vipin Khuttel Founder of Being Topper Recognized for Advancing Digital Literacy and Social Empowerment
  • Vipin Khuttel Organizes International Conference for Digital Excellence 2, Elevating the Future of Technology
  • India’s Top Occult Science Enthusiasts Gather at AgyatOnSearch – Awards & Seminar in New Delhi
  • India’s Leading Digital Marketer, Vipin Khuttel Interacted with Top Influencers of Delhi at BJP West Delhi’s Event

Copyright © 2025 Being Topper ® . All Rights Reserved