What's wrong with this syntax?

MsgBox "Some text "+CAST ([issueStatusCombo] AS String)+" some text"

Any ideas why this won't compile?
LorauraAsked:
Who is Participating?
 
DhaestCommented:
MsgBox "Some text " & issueStatusCombo.text & " some text"
0
 
dancebertCommented:
Cast() is a SQL function, won't work in VB.  issueStatusCombo.text is already of type string, there's no reason for conversion.
0
 
Nightma12Commented:
you seperate text with code with & not +
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.