跳转到主要内容
Search ConditionsHypotheses Evaluation 部分中,可以使用 Print 函数来输出信息。这样就可以输出已构建假设的某些属性及其相关信息。 Print 函数的格式如下:
Void Print( String text )
FlexiLayout 语言提供了全局函数,可用于创建各种类型的 string 表示形式并打印调试信息(参见表格)。 为了显示调试数据,FlexiLayout 语言提供了一组全局函数,用于创建该语言中各种可用类型的 string 表示形式(见下表)。 全局函数 Chr( Int char ) 用于通过制表符、回车符等对打印输出的行进行格式化。此函数根据字符的 Unicode 代码值返回该字符的 string 表示形式。

调用 Print 函数示例

Print: Str( Group1.Item1.Width );
Print: "Is Item1 Null ? - " + Str( Group1.Item1.IsNull );
Print: "Calculate formula: ( 5 * 18 );" + Chr( 13 ) +Chr( 10 ) + "Result is: " + Str( 5 * 18 ) + Chr( 9 ) + "// example";
Print: Str( Group1.Item1.Rect );
在 Code Editor 的某个部分连续多次调用 Print 函数时,将输出由多行组成的文本。