以下是可用于项目[名称]的有效字符:
在Unicode类别中,可将Lu、Ll、Lt、Lm、Lo、和Nl字符用作[名称]中的初始字符。
以下字词为保留字,不能用作项目的[名称]。
| 不区分大小写的词语 | 区分大小写的词语 | |
| A | ACK | abstract |
| B |
BEL BOOL BS BYTE |
base |
| C |
CAN CR |
case catch char class |
| D |
DATE DATE_AND_TIME DC1 DC2 DC3 DC4 DEL DINT DLE DWORD |
decimal delegate double |
| E |
EM ENQ EOT ESC ETB ETX |
else enum event |
| F |
FF FS |
false float |
| G |
GS |
- |
| H |
HT |
- |
| I |
INT INGREDIENT |
if implicit in interface internal is |
| L |
LF LINT LREAL LWORD |
long |
| N |
NAK NONE NUL |
new null |
| O |
- |
object out override |
| P |
- |
params private protected public |
| R |
REAL RS |
ref |
| S |
SI SINT SO SOH SPACE STRING STX SUB SYN |
sbyte sealed short sizeof stackalloc struct |
| T |
TIME TIME_OF_DAY |
this true typeof |
| U |
UDINT UINT ULINT US USINT |
ulong ushort |
| V |
VT |
virtual void |
| W |
WORD WSTRING |
- |
在文本模式脚本中使用下列关键字作为变量名称时,要在变量名称前加上 "$Global"。例如,'$Global.with'
|
关键字 |
||||
|
break |
const |
continue |
debugger |
default |
|
delete |
do |
export |
extends |
finally |
|
for |
function |
goto |
import |
instanceof |
|
return |
super |
switch |
throw |
try |
|
var |
while |
with |
|
|
以下词语不能作为复合对象和复合对象属性的 [名称]。
|
WORD |
|||
|
ActualHeight |
ActualWidth |
Angle |
Animation |
|
AspectRatio |
Children |
Clip |
ConfirmPasswordOnExport |
|
Description |
DesignHeight |
DesignWidth |
Height |
|
Location |
Lock |
Margin |
Name |
|
ObjectAlignment |
Options |
Script |
SubType |
|
Type |
UniqueId |
Visibility |
Width |