Chinaunix首页 | 论坛 | 博客
  • 博客访问: 90571
  • 博文数量: 50
  • 博客积分: 1086
  • 博客等级: 少尉
  • 技术积分: 420
  • 用 户 组: 普通用户
  • 注册时间: 2011-10-25 16:16
文章分类
文章存档

2011年(50)

我的朋友

分类: Python/Ruby

2011-11-15 19:20:52

scripts可是大小写敏感的!
“\”是转义字符,就相当与PB的“'”
“\r\n\t”等

变量类型:
BOOL TRUE or FALSE
CHAR 8-bit 有符号字符
DWORD 同NUMBER
HWND 窗口句柄(内部类型是NUMBER)
INT 同NUMBER
LIST 指向InstallShield list的指针(内部类型是NUMBER)
LONG 同NUMBER
LPSTR 同POINTER
NUMBER 有符号4字节整数
POINTER 指向数据的指针(如int i;p=&i)
SHORT 同NUMBER
STRING 字符串

赔本大甩卖!
字符串的操作:
(1) "+" 加
"123"+"345" = "123345" (12345)
"\\123"+"\\345" = "\\123\\345" (\123\345)
(2) "^" 路径加
"123"^"345" = ".\\123\\345" (.\123\345)
"\\123"^"345" = "\\123\\345" (\123\345)
"\\123"^"\\345" = "\\123\\345" (\123\345)
如果你弄不清楚,就用“+”吧
(3) "%" str1 % str2
if str1包含str2 then true else false
和StrFind (str1, str2)一样

1-函数(Function)***************函数(Function)
举个例子:

//函数声明
prototype RectangleArea (INT,INT);

//函数体
function RectangleArea (nLength, nWidth) //函数名
INT nVal; //局部变量定义
begin
nVal = nLength * nWidth; //函数体
return nVal;

end;

2-循环*******************循环
I、for循环

a、正循环
for iCount = 1 to 10 //step 1
MessageBox ("You'll see this 10 times", INFORMATION);

endfor;

b、负循环
for j = 20 downto 10 step 5
MessageBox ("You will see this three times", INFORMATION);
endfor;

II、repeat……until循环
nCount = 1;
repeat
MessageBox("Count is less than 5", INFORMATION);
nCount = nCount + 1;
until (nCount = 5);

III、while……endwhile循环
nCount = 1;
while (nCount < 5)
MessageBox ("This is still true.", INFORMATION);
nCount = nCount + 1;
endwhile;

3-判断**********************判断
a、
if (szStringA = "exit") then
AskYesNo ( "Are you sure you want to exit?" , NO );
endif;

b、
if (condition) then
// statements to be executed if condition is true
else
// statements to be executed if condition is false
endif;

c、
if (first condition) then
// statements to be executed if condition is true
elseif (second condition) then
// statements to be executed if condition is false
elseif (third condition) then
// statements to be executed if third condition is false
endif;

d、
if condition goto labelname;


……to be continued

 

系统变量有时候是很方便的!
跳楼大拍卖!!!
BATCH_INSTALL 指示当传输文件采用LOCKEDFILE或SHAREDFILE时是否锁定文件
CMDLINE Setup.exe传递的命令行参数
COMMONFILES Common files全路径如“c:\program file\common files”
ERRORFILENAME
FOLDER_DESKTOP Windows 95 或Windows NT 4.0桌面folder的路径
FOLDER_PROGRAMS Windows 95 或Windows NT 4.0 开始菜单中 开始\程序 的folder
FOLDER_STARTMENU Windows 95 或Windows NT 4.0 开始菜单中 开始 的folder
FOLDER_STARTUP Windows 95 or Windows NT 4.0 开始菜单中 启动 的folder
INFOFILENAME InstallShield创建的备份文件全文件名
ISRES _isres.dll全文件名
ISUSER _isuser.dll全文件名
ISVERSION 版本
MEDIA 当前Media库名
MODE 指示程序运行于normal还是silent模式
PROGRAMFILES Windows 95 or Windows NT 4.0 “Program files” folder
SELECTED_LANGUAGE 安装选择的语言号
SRCDIR 安装源目录的全路径
SRCDISK 安装源目录的盘符
SUPPORTDIR 临时文件路径
TARGETDIR 安装目的目录的全路径
TARGETDISK 安装目的目录的盘符
UNINST unInstallShield程序用的反安装文件全文件名
WINDIR Windows的全路径(c:\windows)
WINDISK Windows位于的盘符
WINSYSDIR Windows\system的全路径(c:\windows\system)
WINSYSDISK Windows\system位于的盘符
阅读(872) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~