0
我想讓用戶在安裝程序的其中一個密碼字段中輸入字符> ASCII 127。InstallScript中的字符ASCII代碼InstallShield
我用Google搜索,但沒有發現這方面的任何直接的方式,目前我使用:
CHAR ch;
STRING ASCII;
NUMBER nASCII;
for nCount = 0 to StrLength(sPassword)
ch = sPassword[nCount];
sprintf(ASCII,"%d",ch);
StrToNum(nASCII,ASCII);
if (nASCII > 127)
MessageBox("Invalid Character in Password",INFORMATION);
endif;
endfor;
有沒有更好的方法來從字符串獲得ASCII碼?