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
1.   Make project in Visual Studio 2008. 2.   Controller Class is used for functioning. 3.   Login Form where three people can login like manager, staff and receptionist we c

what are the things that information system can do and their limitations?

( Wage Calculator with Tax Calculations) Develop an application that calculates an employee’s earnings, as shown in Fig. 4.23. The user should provide the hourly wage and number of

SDI Application The SDI application uses the main frame window to exhibit a document. Only one document can be opened at a particular time.

DYNAMIC LINK LIBRARY   The dynamic link library (dll) permits one copy of a function to be shared among some parallel executing programs. The dll is a file that contains a num

Scenario GetLoan is a new company that will provide a loan of money to individual members of the public.   There are two types of loan to be offered: Secured Loan wher

RESOURCES The cursors, Icons, dialog, bitmaps accelerators, menu, table tool bar and string are the different resources. The resources are compiled by the resource compiler. Th

Create a VB calculator application that appears as in the screen shots below. The user enters numbers in the textboxes labelled Number 1 and Number 2. When a calculati

Displaying The Database: The Text box, image box, check box, labels, picture box can be bounded to the data control for exhibiting the data base contents. The two properties a

INTRINSIC CONTROLS   The Intrinsic controls are the built-in controls. Few of the controls are Combo box, Check box, Command Button, Label etc. The controls have properties re