需要判断字符串中是否含有双引号:
VB.NET代码
if instr(InputStr,Chr(34)) > 0 Then
' 字符串中有双引号
End If
C#代码
if (instr(InputStr,Chr(34)) >0)
{
// 字符串中有双引号
}
需要判断字符串中是否含有双引号:
VB.NET代码
if instr(InputStr,Chr(34)) > 0 Then
' 字符串中有双引号
End If
C#代码
if (instr(InputStr,Chr(34)) >0)
{
// 字符串中有双引号
}