文档介绍:函数汇总
函数 ABS()
类别 Math
使用格式及说明
格式:number := ABS(x)
说明:返回x的绝对值
5/18/2018
1
ACOS()
ACOS()
Math
格式:number := ACOS(x)
说明:返回x的反余弦函数值,x的值的范围为0~Pi。
5/18/2018
2
AddLinear
List
格式:AddLinear(linearList, value [, index])
说明:该函数的作用是将Value插入到Linearlist(线型列表)中。
如果该线型列表是一个有序的列表,则Value被按照一定的规则插入到合适的位置;
如果该列表为一个无序的列表,则将Value插入的列表的最后;
如果index的值为1,则Valve被插入到列表第一个;
如果index的值超个列表中的个数,则越界的个数用零补全,然后再插入Value。例如:
5/18/2018
3
AddLinear(续)
1:numList:=[1, 2, 3]
AddLinear(numList, 99, 1)
numList 的结果是[99, 1, 2, 3]
2:numList:=[1, 2, 3]
AddLinear(numList, 99, 6)
NumList is now [1, 2, 3, 0, 0, 99]
5/18/2018
4
AddProperty
List
格式:AddProperty(propertyList, #property, value [, index])
说明:该函数的作用是将属性或值插入到属性列表中。例如:
1:propList:=[#a:1,#b:2,#c:3]
AddProperty(propList, #d, 99, 1)
PropList 为: [#d:99, #a:1, #b:2, #c:3]
2:propList:=[#a:1,#b:2,#c:3]
AddProperty(propList, #d, 99, 6)
propList 为: [#a:1, #b:2, #c:3, #d:99]
5/18/2018
5
AppendExtFile
File
格式:number :=AppendExtFile("filename","string")
说明:该函数将字符串中的值插入到一个文件的末尾。
例如:
AppendExtFile(RecordsLocation^"", NewUser),。
5/18/2018
6
Application
Platform
格式:string := Application()
说明:该函数的返回值为COA加上一个空格,它是 Authorware的源文件名。
某些XCMDs 和 DLLs需要来决定Authorware是否正在运行。
5/18/2018
7
ArrayGet
Math
格式:result := ArrayGet(n)
说明:读取一个排列中的第n个单元,并将它赋给变量result,该单元可以是一个字符串或数字。
5/18/2018
8
Array()
Math
格式:MyArray := Array(value, dim1 [, dim2, dim3, ...dim10])
说明:该函数用来创建一个列表,可以为多维的列表的创建。例如:
我们创建一个三维的列表:
MyArray :=Array(0,4,3,2)
结果是: [[[0, 0], [0, 0], [0, 0]], [[0, 0], [0, 0], [0, 0]], [[0, 0], [0, 0], [0, 0]], [[0, 0], [0, 0], [0, 0]
5/18/2018
9
ArraySet(n, value)
Math
格式:ArraySet(n, value)
说明:将Value的值插入到一个排列列表中第n的位置。
5/18/2018
10