Variable length strings, Visual Basic Programming

Variable Length Strings:

The Strings can be declared using As or $ as shown in the code below; the msg and msg1 are the two strings and they are assigned the values using '='. The value of msg string is displayed followed by space followed by msg1 contents. The yield would be:

Private Sub Command1_Click()

Dim msg As String

Dim msg1$

msg = "distance"

msg1 = "mca"

Form1.Print msg$ & " " & msg1$

End Sub

Posted Date: 10/9/2012 8:13:43 AM | Location : United States

Related Discussions:- Variable length strings, Assignment Help, Ask Question on Variable length strings, Get Answer, Expert's Help, Variable length strings Discussions

Write discussion on Variable length strings
Your posts are moderated
Related Questions
DEVICE CONTEXT The device context provides the essential drawing tools and the platform to draw. It helps to draw the text, shapes, lines etc. To create the device context, the

Visual Processing: Our mind groups the things into patterns and this allows us to process the visual information. Understanding and applying how the human mind processes the v

Creating an application that will calculate the cost of a car rental based on the number of days that the car is rented. the cost of the car rental includes the cost of the car its

A triangle is equilateral if all three sides are equal, isosceles if any two (but no more than two) sides are equal, and scalene if no two sides are equal. A triangle will be input


Dialog Based Application: The application which app wizard generates is based on the dialog template resource.

Depreciation to a Salvage Value of 0.   For tax purposes an item may be depreciated over a period of several years, n. With the straight-line method of depreciation, each year th

Question 1 Design a form based applications using labels, text boxes, and buttons to perform basic arithmetic operations on integers Question 2 Describe the concept of Except

ToolTip: The ToolTip property is used to flash a message regarding a control object when the mouse pointer moves over that object for a couple of seconds. Pick a control and c