DiGrande.it

Blind, Braille and Embossing Technologies

This site uses cookies to personalize content and ads, provide social media features and analyze links. By closing this banner or continuing to browse, you consent to their use.
Read the DiGrande.it Cookie Policy

StringLeft- Returns a substring from the left side of the string

Function that returns the substring of the specified length from the left part of the string.

- StringLeft(S,N): string

Parameters:

- (string) S: String from which the substring is to be copy;

- (int) N: Number of characters to be taken from the left side of the string.

Description:

Use the StringLeft function to copy N characters of the left part of the string S. The instruction is a facilitation, which can also be obtained with the StringCopy instruction.

Examples:

// Create a string variable

S = "Biblos"

// Returns the first three characters of the string S

T = StringLeft(S,3)

// The variable T contains the string: Bib

MsgBox(T)