Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Senior Coder jerry62704's Avatar
    Join Date
    Oct 2007
    Springfield, IL
    Thanked 87 Times in 87 Posts

    Question Questions - trace()

    I have two questions. One is why I get an error on a trace. The other will be in a different thread. Here is the code:
    public var tempArray:Array = FSL.getEnglishYesNo();
    "FSL" is a class that has all the language properties. There is a "spanishYesNo" to match the "englishYesNo" for example. Here is the error that the trace statement has:
    1120: Access of undefined property tempArray.
    It doesn't make much sense to me that the immediately preceding statement isn't visible - the variable to be traced is defined in the immediately prior statement. The error also occurs if you have literals put into the array.

    This is a compile time error found by doing a "project" "clean".
    ...and gladly would he learn and gladly teach

    Visit www.LiberalsWin.com for humor and the unique Bush/Obama Approval Polls

  2. #2
    New to the CF scene
    Join Date
    Oct 2010
    Thanked 0 Times in 0 Posts
    Adding the trace statement inside a function will make it work.


Tags for this Thread

Posting Permissions

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