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 all my program done except the loan part that I am having a lot of troubles with

i have a database i want mange it network and i want write it with vb.net so how i can do this

Check Box: The check box control takes the value as on or off or grayed. The grayed one is neither on nor off. The user can transform the setting of the grayed check box.

How to create a login form in vb 2010

Hungarian Notation: The Hungarian Notation was invented by Charles Simonyi from Microsoft. It is a naming convention. It is a reminder of the type of a variable. The Handles h

US WordPress Expert We are functioning on a software application based on WordPress (BuddyPress + Event Manager). Everything as far as functionality is done. Utmost of the styli

The scope of a variable is finding out by where you declare it. While you declare a variable in a procedure, only code in that procedure can access or alter the value of that varia

A program needs to be written that is capable of simple image processing. All the images that are available for you to use, can be found on Blackboard in the Assignments section. T

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

You can employ the SCRIPT element to add VBScript code to an HTML page. The SCRIPT Tag VBScript code is written inside paired SCRIPT tags. For instance, a process to test