我要寫這樣一句話,如果字符串A中第5個字符是逗號,則B=1, 如果的第5個字符是單引號,則讓B=2
我寫 if (substr(A,5,1) EQ ',' B=1.
if (substr(A,5,1) EQ ''' B=2.
第一句可以順利執行,但是第二句就不能。應該是3個引號把SPSS搞暈了。我應該怎麽辦呢?
我要寫這樣一句話,如果字符串A中第5個字符是逗號,則B=1, 如果的第5個字符是單引號,則讓B=2
我寫 if (substr(A,5,1) EQ ',' B=1.
if (substr(A,5,1) EQ ''' B=2.
第一句可以順利執行,但是第二句就不能。應該是3個引號把SPSS搞暈了。我應該怎麽辦呢?
WENXUECITY.COM does not represent or guarantee the truthfulness, accuracy, or reliability of any of communications posted by other users.
Copyright ©1998-2025 wenxuecity.com All rights reserved. Privacy Statement & Terms of Use & User Privacy Protection Policy