8 Replies Latest reply on Dec 2, 2011 8:58 AM by pauland

    public static function

    jfb00 Level 3

      Hi,

      I have a public static function passing the name of my datagrid as string.

       

      public static function myFunction(myDG:String):Void
         
      {
              var myDG_length =
      this[myDG].dataProvider.source.length;

          }


      How can I make this[myDG] to work here?

      I try without luck:  (myDG as DataGrid).dataProvider.source.length

      Thanks