作业帮 > 数学 > 作业

vf substr(dotc(入学时间),1,2)+; substr(dtoc(入学时间),4,2) to XC是啥意思

来源:学生作业帮 编辑:神马作文网作业帮 分类:数学作业 时间:2024/09/25 05:28:21
vf substr(dotc(入学时间),1,2)+; substr(dtoc(入学时间),4,2) to XC是啥意思?急
vf substr(dotc(入学时间),1,2)+; substr(dtoc(入学时间),4,2) to XC是啥意思
首先,日期型数据的格式是"月/日/年",如"05/11/10"表示2010年5月11日,那么:
substr(dotc(入学时间),1,2)+substr(dtoc(入学时间),4,2)就表示(假定这里的入学时间就为"05/11/10")
1、substr(dotc(入学时间),1,2):从入学时间的第1个开始取2个字符出来,结果为“05”
2、substr(dtoc(入学时间),4,2):从入学时间的第4个开始取2个字符出来,结果为“11”
因为这句的意思就是将“0511”这个值赋给变量XC