Consulting

Results 1 to 2 of 2

Thread: string name same as sub name - dynamic

  1. #1

    string name same as sub name - dynamic

    Sub CM_UKtoPortugal_RT()
    
    '... variables for error handling
    	Const sErrorSource As String = "CM_UKtoPortugal_RT()"

    Is there a way to have the string the same name as the Sub name - without hard-coding it?

    Picco


  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Quote Originally Posted by crmpicco
    Sub CM_UKtoPortugal_RT()
    
    '... variables for error handling
    	Const sErrorSource As String = "CM_UKtoPortugal_RT()"

    Is there a way to have the string the same name as the Sub name - without hard-coding it?

    Picco

    No.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •