アプリ版:「スタンプのみでお礼する」機能のリリースについて

hoge = request("hoge")
if (もしhogeの中に「aaa」の文字列が含まれていたら) then
response.write "aaaがありますよ!"
end if

という処理を作りたいです。
(もしhogeの中に「aaa」の文字列が含まれていたら)
の処理がよく分かりません。HELPください。

A 回答 (1件)

お世話になります。



ASP.NET なら
If Not Request("hoge") Is Nothing AndAlso _
  Request("hoge").IndexOf("aaa") <> -1 Then
  ' aaa あるとき処理
End If
http://msdn2.microsoft.com/ja-jp/library/k8b1470 …

.NET より前なら
If Not Request("hoge") Is Nothing Then
  If Instr(CStr(Request("hoge")), "aaa") <> -1 Then
   ' aaa あるとき処理
  End If
End If
http://msdn.microsoft.com/library/ja/default.asp …
    • good
    • 0
この回答へのお礼

ありがとうございます。これで解決です!

お礼日時:2006/10/23 01:38

お探しのQ&Aが見つからない時は、教えて!gooで質問しましょう!