-
October 18th, 2009, 04:28 PM
#1
[RESOLVED] Invalid outside procedure
Hello,
I got an error on the first parameter LDest_UserDisplay highlighted in the following function while compile.
Code:
Private CERR_OVERAMT As String
CERR_OVERAMT = GetMessage(LDest_UserDisplay, MSGGRP_MESSAGEBOX, MSGID_MESSAGEBOX_CERR_OVERAMT, "Certificate Amount Exceeds the Value of the Items That Qualify for this Discount", LCID_NOT_SPECIFIED)
The difintion of GetMessage(...) is like
Code:
Function GetMessage(nDestination As LanguageDestination, nMessageGroup As MessageGroups, sMessageID As String, sDefaultMessage As String, nLanguageCode As LanguageCodes, ParamArray oSubstitutions() As Variant) As String
It is a member of Common.clsMessageTranslationUtils
And I check the reference, it does be there.
Could you plase to look at where is wrong?
-
October 18th, 2009, 07:19 PM
#2
Re: Invalid outside procedure
Ignore it.
The question becomes that I want to define a variable
Code:
Public CERR_OVERAMT As String
CERR_OVERAMT = GetMessage(LDest_UserDisplay, MSGGRP_MESSAGEBOX, MSGID_MESSAGEBOX_CERR_OVERAMT, "Certificate Amount Exceeds the Value of the Items That Qualify for this Discount", LCID_NOT_SPECIFIED)
And I want to make it global. Where is the best place to reside it?
Currently I define it in the class_initialize, but I found that it is not global.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|