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
I have a tiff image of 25 pages. I capture particular square from particular page and past on one excel sheet one by one. it is possible, if yes how. Image have line no and pe

Using Loops to Repeat Code Looping let you to run a group of statements repeatedly. Some loops repeat statements till a condition are False; others repeat statements till a con

STEPS TO CREATE A RECTANGLE IN THE CLIENT REGION 1. Generate a SDI application and name it as a brush. 2. Handle the WM_LBUTTONDOWN message for the CBrushView object id.

Question 1 Create a VB application to make the text bold, italic, underlined and also color the text (using checkbox, option button, textbox controls) Question 2 Create a

Each piece of data is passed in your process using an argument. Arguments serve like placeholders for the data you wish to pass into your process. You can name your arguments along

A variable is convenient placeholder which refers to a computer memory location where you can store program information which may change when your script is running. For instance,

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

Assigning Values to Variables Values are assigned to variables creating an expression as follows: the variable is on the left side of the expression & the value you desire to a

PROGRAM TO ZOOM A RECTANGLE AS YOU DRAG 1. Generate a SDI application 2. Declare the 2 member variables clicked of Boolean type and m_ptoldpt of CPoint type. Use the class t

1. Create a new solution file named Ch03HandsOnProject1. 2. Rename the form and set the filename of the form to frmMain and frmMain.vb, respectively. 3. Set the appropriate p