求一函数 对以数据串做处理 ,用VB的if语句怎么写,我写的报错缺少Then

求一函数 对以数据串做处理 ,用VB的if语句怎么写,我写的报错缺少Then
求一函数 对以数据串做处理
AABBCC
如果AA为11时:如果BB为22,将CC赋给D;如果BB为33,将CC赋给E,如果BB为44时,将CC赋给F
H如果AA为22时;如果BB为22,将CC赋给G;如果BB为33,将CC赋给H,如果BB为44时,将CC赋给K
zqt1818 1年前 已收到1个回答 举报

韩恩廷 幼苗

共回答了19个问题采纳率:94.7% 举报

if aa =11
then
if bb = 22 then d=cc
.
next
if aa = 22
then
if bb = 22 then g=cc
.
next
j就是这样

1年前 追问

4

zqt1818 举报

if tmp1=41 then tmp2=mid(strinput,7,8) if tmpid=31 then k301=tmp2 end if if tmpid=3B then k302=tmp2 end if if tmpid=36 then k303=tmp2 end if if tmpid=37 then k304=tmp2 end if end if 测试出错,缺少then

举报 韩恩廷

if tmp1=41 then tmp2=mid(strinput,7,8) end if if tmpid=31 then k301=tmp2 end if if tmpid=3B then k302=tmp2 end if if tmpid=36 then k303=tmp2 end if if tmpid=37 then k304=tmp2 end if
可能相似的问题
Copyright © 2024 YULUCN.COM - 雨露学习互助 - 17 q. 0.034 s. - webmaster@yulucn.com