In vb dot net, what is the syntax to see if something is a string?

T

tom c

In vb dot net, what is the syntax to see if something is a string? For
example, if I read FieldX from a table I want to do something like:

If FieldX is string then
'Do something
end if

except I know "is string" is not correct. What is the correct syntax?
 
M

Michael Nemtsev

Hello Tom,

use Regexp for this
See there http://regexlib.com/Search.aspx?k=string for expressions

TC> In vb dot net, what is the syntax to see if something is a string?
TC> For example, if I read FieldX from a table I want to do something
TC> like:
TC>
TC> If FieldX is string then
TC> 'Do something
TC> end if
TC> except I know "is string" is not correct. What is the correct
TC> syntax?
TC>
---
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche
 
S

Scott M.

I don't think this will help. The OP isn't looking for strings, he's
looking to see if something is a string.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top