PC Review


Reply
Thread Tools Rate Thread

Const declarations and accessibility

 
 
XP
Guest
Posts: n/a
 
      21st Oct 2008
Using Windows XP and Office 2007;

Is there a way to obtain the contents of a string constant from another
module where the other module in which the const lives is marked "Option
Private Module" and the const is declared as: Private Const myConst As String
= "MyString"?

If possible, could someone please post a generic example on how to do it?

If NOT marked private, is a module level Const automatically global, if not,
what is it?

Thanks for the clarifications!
 
Reply With Quote
 
 
 
 
Peter T
Guest
Posts: n/a
 
      21st Oct 2008
Change 'Private Const' to 'Public Const'. That should still be visible
throughout the project even with Option Private Module

Regards,
Peter T


"XP" <(E-Mail Removed)> wrote in message
news:676CA115-6A9D-4A32-918E-(E-Mail Removed)...
> Using Windows XP and Office 2007;
>
> Is there a way to obtain the contents of a string constant from another
> module where the other module in which the const lives is marked "Option
> Private Module" and the const is declared as: Private Const myConst As
> String
> = "MyString"?
>
> If possible, could someone please post a generic example on how to do it?
>
> If NOT marked private, is a module level Const automatically global, if
> not,
> what is it?
>
> Thanks for the clarifications!



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ordering const declarations spam@darrenw.net Microsoft C# .NET 2 1st Aug 2006 06:56 AM
Casting from non-const to const (C2440) RalphTheExpert Microsoft VC .NET 1 14th Nov 2005 07:48 PM
Declarations Procedure and Duplicate Declarations =?Utf-8?B?TmVhbCBaaW1t?= Microsoft Excel Programming 3 31st May 2005 01:01 AM
friend CStringT operator+(const CStringT& str1, const CStringT& st =?Utf-8?B?VG9ueU0=?= Microsoft VC .NET 2 3rd Nov 2004 01:09 PM
Re: crash changing const to public const BrianB Microsoft Excel Programming 0 4th Aug 2003 10:13 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:39 AM.