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
A variation on the If...Then...Else statement lets you to choose from various alternatives. By adding up Else If clauses expands the functionality of the If...Then...Else statement

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

I have an excel list with a lot's of serial numbers that have been entered by hand from PDFs online (1-5 serial numbers per PDF). Many of the values are duplicates, wrong, or conta

We are need of VB.NET Dynamically Created Gridview with Textboxes, DDLs Utilizing VB code in ASP.NET I dynamically create a calendar showing either 3 or 6 or 9 or 12 months, dep

MDI Application: The MDI application utilizes the main frame window as the work space in which the user can open more document frame windows.

For naming anything variable names follow the standard rules in VBScript. A variable name: Should begin with an alphabetic character. Cannot have an embedded period. Sh

WINDOWS PROGRAMMING The Windows programming is a developing application using the C and the native Win32 application interface (API) or C++ and the class libraries like Microso

DIALOG   The dialog is a window which contains controls. The Dialog boxes are the form of input and output. The control can be placed on the dialog box for communicating. If y

Data types: The New data types were defined by using the typedef or #define statements. This was to allow the transition from 16 bit to 32 bit system. Some of the fresh data t

FILE SYSTEM CONTROLS There are 3 file system controls as shown in figure. The drive list box, directory list box & the file list box. The drive list box control is used to exhi