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
want a visual basic code on Hungarian method

You are asked to create the LOTO game customized according to the following constraints: 1. Create a grid containing 20 numbers (20 buttons: button1, button2, …button20) 2. When t

Properties: VBScript Err Object   Properties   Description   D escription Property The descriptive string related

You can employ until keyword in two ways to verify a condition in a Do...Loop statement. You can verify the condition before you enter the loop (as illustrated in the following Chk

Option Explicit Declaration: If the option explicit is used essentially then all the variables will have to be declared. Or else an error will be reported saying that the vari

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

departmental store attributes

CONTEXT-SENSITIVE HELP   The Context-sensitive help gives online help for the circumstances which is associated with that state. The Context-sensitive help can be implemented

Sets or returns context ID for topic in Help File. If Help file is indicated in the VBScript Err Object HelpFile Property, the HelpContext property is utilized to display automatic

In your code A, Function has to always be used on the right side of a variable assignment or in an expression. For illustration: Temp = Celsius(fDegrees) or Msg Box "The C