Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我的表中有一个值“ABC”,我想将其转换为 ASCII 值。
如何才能做到这一点?
我的输出应该是:656667
使用 ASC() 函数。但是,我相信它一次只对 1 个字符执行。所以你必须遍历你的字符串。
lcString = "ABC" lcOutput = "" FOR I = 1 TO LEN(lcString) lcOutput = lcOutput + ASC( SUBSTR(lcString, I, 1) ) &&Out puts the ascii value. ENDFOR