|
Generates an array of consecutive numeric characters (integers).
syntax
IntStrs(
startValue,
count
[,width = 0]
[,header]
[,footer]
[,inc = 1]
)
Parameters
charcode
|
|
Type:
|
Number
|
|
The starting value (integers only).
|
count
|
|
Type:
|
Number
|
|
Quantity.
|
width
|
|
Type:
|
Number
|
|
Total number of characters. If the number of characters is insufficient, 0s are added to the beginning. If width is 0, nothing is added.
|
header
|
|
Type:
|
character
|
|
The character to prepend.
|
footer
|
|
Type:
|
character
|
|
The character to append to the end.
|
inc
|
|
Type:
|
Number
|
|
The number to increment.
|
Return Value
|
|
Type:
|
Number (array)
|
|
The generated numeric array (one-dimensional array).
|
Explanation
Generates an array of consecutive numeric characters (integers).
|
Example
|
var vTags = ::IntStrs(0, 100, 2, "TAG"); //Same as c("TAG00","TAG01","TAG02",…"TAG99")
this.AddTag(vTags); // Register 100 tags
var vValue = this.GetVal(vTags); // Get the values of 100 tags
|
|
Supported
reference
StrLen
MBStrLen
LeftStr
RightStr
MidStr
FindStr
IsLike
InsertStr
RepeatInsertStr
CombineStr
DivideStr
TrimLeftStr
TrimRightStr
UpperStr
LowerStr
ReplaceStr
ReverseStr
CStrToArray
CArrayToStr
CCsvToArray
CArrayToCsv
Chr
Ascii
RET
IntStrs
IsFullWidthChar
MeasureStr
|