ZennoLab Assemblies Documentation
Spintax Method
See Also  Example Send Feedback
ZennoLab.Macros Assembly > ZennoLab.Macros Namespace > TextProcessing Class : Spintax Method
sourceString

Type: System.String

Source string.

Glossary Item Box

Spintaxes the string

Syntax

C# 
public static string Spintax( 
   string sourceString
)

Parameters

sourceString

Type: System.String

Source string.

Return Value

Type: System.String

A spintaxed string.

Example

The following example shows call the Spintax method.
C#Copy Code
var result = Macros.TextProcessing.Spintax("I'm the {first|second|third|fourth|fifth} in line.");
return result;
 
// result = "I'm the first in line." or "I'm the second in line.", etc.
PHPCopy Code
$result = Macros::TextProcessing::Spintax("I'm the {first|second|third|fourth|fifth} in line.");
return $result;
 
// result = "I'm the first in line." or "I'm the second in line.", etc.

Requirements

Target Platforms: Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2013 All Rights Reserved.