第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定
已解決430363個(gè)問題,去搜搜看,總會(huì)有你想問的

檢查一個(gè)字符串是否包含另一個(gè)字符串

檢查一個(gè)字符串是否包含另一個(gè)字符串

我想查找字符串中是否包含“,”(逗號(hào))。除了逐個(gè)字符閱讀之外,我們還有其他選擇嗎?
查看完整描述

3 回答

?
12345678_0001

TA貢獻(xiàn)1802條經(jīng)驗(yàn) 獲得超5個(gè)贊

您也可以使用特殊詞like:


Public Sub Search()

  If "My Big String with, in the middle" Like "*,*" Then

    Debug.Print ("Found ','")

  End If

End Sub


查看完整回答
反對(duì) 回復(fù) 2019-10-17
?
嚕嚕噠

TA貢獻(xiàn)1784條經(jīng)驗(yàn) 獲得超7個(gè)贊

您還可以編寫一個(gè)函數(shù),如果存在子字符串,則返回TRUE,否則返回FALSE:


Public Function Contains(strBaseString As String, strSearchTerm As String) As Boolean

'Purpose: Returns TRUE if one string exists within another

On Error GoTo ErrorMessage

? ? Contains = InStr(strBaseString, strSearchTerm)

Exit Function

ErrorMessage:

MsgBox "The database has generated an error. Please contact the database administrator, quoting the following error message: '" & Err.Description & "'", vbCritical, "Database Error"

End

End Function


查看完整回答
反對(duì) 回復(fù) 2019-10-17
  • 3 回答
  • 0 關(guān)注
  • 700 瀏覽

添加回答

舉報(bào)

0/150
提交
取消
微信客服

購課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)