Fixed length strings, Visual Basic Programming

Fixed length strings:

The Fixed length strings are declared by identifying the size of the string. For illustration to give a length of 20 for the string place, the declaration below would be used.

Dim place as String * 20

Private Sub Command1_KeyDown(KeyCode As Integer, Shift As Integer)

Dim m As String * 20

m$ = 'chennai is the capital city of tamilnadu'

Form1.Print m$

When any key is pressed during the execution, a fixed length string m of size 20 is formed. The string "chennai is the capital of tamilnadu" is assigned to m. whenever you print the string m the output would be as "chennai is the capital". The 20 characters involving the space in between are only displayed.

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

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

Write discussion on Fixed length strings
Your posts are moderated
Related Questions
what mean by programing

The Refresh Method: The refresh method transfer to the first record in the record set. To invoke the refresh method follow the syntax which is as shown below: Form1.Data1.R

Cdatabase Class: The CDataBase class helps to connect to the data source. The Open member function opens a connection to the data source. CRecordset class is used for performi

Variable Scope Prefixes As script size rise, so does the value of being capable to rapidly differentiate the scope of variables. A one-letter scope prefix preceding type prefix

What are the differences between Property Get, Set and Let? Set - Value assigned to ActiveX Object from the form. Let - Value retried to ActiveX Object from the form. Get- Assigns

You declare variables explicitly in script via the Dim statement, the Public statement, & the Private statement. For illustration: Dim DegreesFahrenheit You declare multiple