• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 129
  • Last Modified:

What's wrong with this syntax?

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

Any ideas why this won't compile?
0
Loraura
Asked:
Loraura
1 Solution
 
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

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now