InStr测试 [英] InStr test

查看:64
本文介绍了InStr测试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嘿所有,

我得到的结果是我不明白


i有一个字符串test1,test2


如果是InStr(test1)和InStr(test2)那么

''里面

EndIf


由于某种原因,内部没有运行。任何想法?


谢谢,

rodchar

hey all,
i''m getting a result that i don''t understand

i have a string "test1, test2"

If InStr("test1") and InStr("test2") Then
''Inside
EndIf

The inside is not running for some reason. Any ideas?

thanks,
rodchar

推荐答案

As =? Utf-8?B?cm9kY2hhcg ==?=曾经说过

microsoft.public.dotnet.framework.aspnet
As =?Utf-8?B?cm9kY2hhcg==?= once said in
microsoft.public.dotnet.framework.aspnet

hey all,

我得到一个我不明白的结果


i有一个字符串test1,test2

如果是InStr(test1)和InStr(test2)那么

''里面

EndIf


由于某种原因,内部没有运行。有任何想法吗?
hey all,
i''m getting a result that i don''t understand

i have a string "test1, test2"

If InStr("test1") and InStr("test2") Then
''Inside
EndIf

The inside is not running for some reason. Any ideas?



是的。你没有使用错误的Instr语法。


我甚至惊讶于编译。

Yes. You are not using the wrong syntax for Instr.

I surprised this even compiles.


" rodchar" < ro ***** @ discussion.microsoft.com写信息

新闻:8A *********************** *********** @ microsof t.com ...
"rodchar" <ro*****@discussions.microsoft.comwrote in message
news:8A**********************************@microsof t.com...

嘿所有,

我是得到一个我不明白的结果


i有一个字符串test1,test2


如果是InStr(" test1" )和InStr(test2)然后

''里面

EndIf


内部因某些原因没有运行。有任何想法吗?
hey all,
i''m getting a result that i don''t understand

i have a string "test1, test2"

If InStr("test1") and InStr("test2") Then
''Inside
EndIf

The inside is not running for some reason. Any ideas?



呃,好吧它已经有一段时间了,因为我已经使用了任何基本的味道,但是没有

InStr需要多个参数...?

切换选项严格...

Er, well it''s been a while since I''ve used any flavour of Basic, but doesn''t
InStr require more than one argument...?

Switch Option Strict on...


" kpg" < no@way.comwrote in message

news:Xn ****************************** *@207.46.248。 16 ...
"kpg" <no@way.comwrote in message
news:Xn*******************************@207.46.248. 16...

是的。您没有使用错误的Instr语法。
Yes. You are not using the wrong syntax for Instr.



我认为OP *是*使用错误的InStr语法...

I think the OP *is* using the wrong syntax for InStr...


我很惊讶这甚至编译。
I surprised this even compiles.



我敢打赌它不会......

I bet it doesn''t...


这篇关于InStr测试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆