StringPrototype.substr(Object, Double, Object) Methode

Definitie

Hiermee maakt u een nieuwe tekenreeks die het opgegeven aantal opeenvolgende tekens uit de opgegeven tekenreeks bevat, beginnend vanaf de opgegeven tekenpositie. Gebruik substring(Object, Double, Object) in plaats daarvan, indien mogelijk.

Deze API ondersteunt de productinfrastructuur en is niet bedoeld om rechtstreeks vanuit de code te gebruiken.

public:
 static System::String ^ substr(System::Object ^ thisob, double start, System::Object ^ count);
[Microsoft.JScript.JSFunction(Microsoft.JScript.JSFunctionAttributeEnum.HasThisObject, Microsoft.JScript.JSBuiltin.String_substr)]
[Microsoft.JScript.NotRecommended("substr")]
public static string substr(object thisob, double start, object count);
[<Microsoft.JScript.JSFunction(Microsoft.JScript.JSFunctionAttributeEnum.HasThisObject, Microsoft.JScript.JSBuiltin.String_substr)>]
[<Microsoft.JScript.NotRecommended("substr")>]
static member substr : obj * double * obj -> string
Public Shared Function substr (thisob As Object, start As Double, count As Object) As String

Parameters

thisob
Object

Het object waarop deze methode handelt.

start
Double

Het eerste opeenvolgende teken dat moet worden getyp.

count
Object

Het aantal tekens dat u wilt ophalen.

Retouren

Een nieuwe tekenreeks die opeenvolgende tekens bevat count , beginnend bij start.

Kenmerken

Van toepassing op

Zie ook