CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jan 2006
    Posts
    326

    [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?

  2. #2
    Join Date
    Jan 2006
    Posts
    326

    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
  •  





Click Here to Expand Forum to Full Width

Featured