vfp操作问题CLEARSET TALK OFF WAIT '请按任意键...' TO c windows AT 10,15IF c > = '0'.and.c < = '9'str = c + "是数字符号"ELSEIF UPPER(c) > = 'a' .and.UPPER(c) < ='z' str = c + "是英文字母"ELSEstr = c + "是其他字母!"ENDif ENDIFME
来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/29 17:58:58
vfp操作问题CLEARSET TALK OFF WAIT '请按任意键...' TO c windows AT 10,15IF c > = '0'.and.c < = '9'str = c + "是数字符号"ELSEIF UPPER(c) > = 'a' .and.UPPER(c) < ='z' str = c + "是英文字母"ELSEstr = c + "是其他字母!"ENDif ENDIFME
vfp操作问题
CLEAR
SET TALK OFF
WAIT '请按任意键...' TO c windows AT 10,15
IF c > = '0'.and.c < = '9'
str = c + "是数字符号"
ELSE
IF UPPER(c) > = 'a' .and.UPPER(c) < ='z'
str = c + "是英文字母"
ELSE
str = c + "是其他字母!"
ENDif
ENDIF
MESSAGEBOX(str,64,"输出")
SET TALK ON
RETURN
在运行的时候会出现“缺少操作符” 要运行下去要怎么弄?
vfp操作问题CLEARSET TALK OFF WAIT '请按任意键...' TO c windows AT 10,15IF c > = '0'.and.c < = '9'str = c + "是数字符号"ELSEIF UPPER(c) > = 'a' .and.UPPER(c) < ='z' str = c + "是英文字母"ELSEstr = c + "是其他字母!"ENDif ENDIFME
哈,简单
原句:
IF c > = '0'.and.c < = '9'
改为:
IF c>='0'.and.c_= '0'.and.c_