镇江市江南学校校园网:vb高手,一起来评,错在哪里,应如何改正?

来源:百度文库 编辑:神马品牌网 时间:2024/04/29 18:51:17
public sub huang()
dim a as string
a="i am a student"
dim b as integer
for b=1 to 10 step 1
a=left(string,b)
if a="s" then
replace(string,s,v)
next b
end sub

你打开VB。。。点调试。。自己实验一下。就知道那里错了。。

replace(string,s,v)
改成
replace(string,"s","v")