Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

What's wrong with this syntax?

Posted on 2004-04-21
3
Medium Priority
?
128 Views
Last Modified: 2011-09-20
MsgBox "Some text "+CAST ([issueStatusCombo] AS String)+" some text"

Any ideas why this won't compile?
0
Comment
Question by:Loraura
3 Comments
 
LVL 53

Accepted Solution

by:
Dhaest earned 200 total points
ID: 10878096
MsgBox "Some text " & issueStatusCombo.text & " some text"
0
 
LVL 9

Expert Comment

by:dancebert
ID: 10878555
Cast() is a SQL function, won't work in VB.  issueStatusCombo.text is already of type string, there's no reason for conversion.
0
 
LVL 1

Expert Comment

by:Nightma12
ID: 10879259
you seperate text with code with & not +
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Suggested Courses
Course of the Month10 days, 12 hours left to enroll

885 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question