关于VB数组读取的问题

来源:百度知道 编辑:UC知道 时间:2024/06/04 23:41:21
我定义了一个数组readbye(15,10000),这个数组中的前四个字符是一个事件代码,如“8610”,如果检测到“8610”的话,就往数据库内读本行和下一行,如果不是这个事件的话就读本事件的所在行的内容!不知道说没说明白,给个思路或代码!先谢过,有点急,请尽快回复!

if(readbye(15)=asc("8") and readbye(16)=asc("6") and readbye(17)=asc("1") and readbye(18)=asc("0")) then
read this line and next line
else
read this line
end if

其中read this line and next line和read this line替换为你需要的内容

你这个思路不是很清晰吗?干嘛还要人回答啊?