Announcement

Collapse
No announcement yet.

Is this a bug or am i missing something?

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • #16
    It has always worked this way. If you are unsure you can always add;

    #UNIQUE VAR ON

    to your source file.
    Scott Slater
    Summit Computer Networks, Inc.
    www.summitcn.com

    Comment


    • #17
      The problem is that if you change it to "REDIM ArrayName(number) AS type", it does create a new array with scope LOCAL.
      This is undocumented (Help just says that "as type" is optional).
      ISTR this "phenomenon" being reported by others in the context of "procedures, " not just in the context of "Interfaces" ... anything other than simple 'REDIM arrayname(new_bounds) [ end of statement]' will create a 'new' array using the type and scope specified.

      I just, out of force of habit now that everything works, always do this:
      Code:
       Procedure Foo (params) 
      
        LOCAL   arrayname() AS type      ' define the symbol 
      
       ..... 
        REDIM arrayname (number)        '  create the array so it exists and may be used 
                                        ' datatype and scope already defined above
      Apparently I won't have to change anything should I desire to create my own INTERFACEs with METHODs.

      MCM
      Michael Mattias
      Tal Systems Inc.
      Racine WI USA
      mmattias@talsystems.com
      http://www.talsystems.com

      Comment

      Working...
      X