Line Continuation in VB6

Posted on 2009-07-09
Medium Priority
Last Modified: 2012-05-07
Can I use a line continuation character in VB6 while defining a global constant?  I've tried, but can't seem to get it to work.
Question by:NigelRocks
  • 2
LVL 77

Accepted Solution

GrahamSkan earned 2000 total points
ID: 24814982
This works for me with VB6 (SP6):

Global Const abc = "abc" & _

LVL 77

Assisted Solution

GrahamSkan earned 2000 total points
ID: 24815007
Note that you can't split a string across lines

This won't work:
strText = "abd _

Featured Post

Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

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.

Join & Write a Comment

When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
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…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

600 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