Results 1 to 5 of 5
  1. #1
    Gold Lounger
    Join Date
    Jan 2004
    Location
    Italy
    Posts
    3,245
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Case is with global const... (2000 sr 1)

    I have this Global Const:
    Global Const TS101604870004 = "

    Il sospeso deriva da operazione di addebito utilizzo carta di credito impropriamente stornata (vedi C.S. n. 734 del 27/10/94 e Circolare n. 86 del 15/11/99).</p>

    " & _
    "Si rende necessario, a seconda dei casi, esperire, in alternativa, le seguenti attivit

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Case is with global const... (2000 sr 1)

    It's not clear to me what you want to do. You cannot "set a global const" - constants are, well, constant. Please explain more clearly.

  3. #3
    Uranium Lounger
    Join Date
    Jan 2001
    Location
    South Carolina, USA
    Posts
    7,295
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Case is with global const... (2000 sr 1)

    Global Constants are constant and therefore can not be set. They are defined at compile time, before any code is run, therefore can not be defined as any value/variable that assumes a value at run time. In other words, Global Constants can only be defined as Constants. Therefore, there is no way to define a Global Constant as the contents of a cell which is by definition variable.
    Legare Coleman

  4. #4
    Gold Lounger
    Join Date
    Jan 2004
    Location
    Italy
    Posts
    3,245
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Case is with global const... (2000 sr 1)

    to explain this is my idea...
    Correct? (i have dim generale as string)
    Select Case TIPO_SOSP_TS
    Case "TS101604870004"
    GENERALE = TS101604870004
    Case "TS110000050000"
    GENERALE = TS110000050000
    Case "TS111000010000"
    GENERALE = TS111000010000
    Case "TS203700010000"
    GENERALE = TS203700010000
    Case "TS203700020000"
    GENERALE = TS203700020000
    Case Else
    GENERALE = GENERALE_1
    End Select

  5. #5
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Case is with global const... (2000 sr 1)

    And does that do what you want?

Posting Permissions

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