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 I understand from the assignment is I have to make the VB code in file nu1. xlsm generic, and run several iterations for Kc and Ti to find out the optimal combination which wi


I would like someone to look at my code and tell me why it''s not working

FILES IN A VB PROJECT The project file has the.vbp extension. The form in which we draw has the .frm extension; .mod denotes the module file; .cls denotes the class file; .res

VISUAL INTERFACE DESIGN Instead of the graphic nature of the program, only the visualness of the inter action is important. The program must not focus on the GUI. On the other

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

Difference between Class Module and Standard Module? Standard module: -This place for variable declarations,procedures etc.& it can accessed these procedures in whereve

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

Just like normal objects Dictionary object also has definite properties. These properties can be set to any valid value & can be retrieved as and while required. Pr