Difference between revisions of "StrToBox"
From SCAR Divi Manual
(One intermediate revision by the same user not shown) | |||
Line 8: | Line 8: | ||
===Notes=== | ===Notes=== | ||
− | *Before 3.38, the function had some flexibility issues with the input. | + | *Before 3.38, the function had some flexibility issues with the input. If the given string is not in an acceptable format, the function will throw an exception. |
==Description== | ==Description== | ||
− | Converts a given [[string]] '''Str'' to a [[TBox]]. | + | Converts a given [[string]] '''Str''' to a [[TBox]]. |
==Example== | ==Example== |
Latest revision as of 14:15, 26 November 2012
Definition
function StrToBox(const Str: string): TBox;
Availability
SCAR Divi 3.37 > Current
Notes
- Before 3.38, the function had some flexibility issues with the input. If the given string is not in an acceptable format, the function will throw an exception.
Description
Converts a given string Str to a TBox.
Example
begin WriteLn(BoxToStr(StrToBox('1,2,3,4'))); WriteLn(BoxToStr(StrToBox('1,2 ,3, 4'))); WriteLn(BoxToStr(StrToBox('1,2 ,3, 4)'))); WriteLn(BoxToStr(StrToBox('(1,2 ,3, 4)'))); WriteLn(BoxToStr(StrToBox('(1,2,3,4)'))); end.
Output:
(1,2,3,4) (1,2,3,4) (1,2,3,4) (1,2,3,4) (1,2,3,4)