>Use analtemp Alias analyse >* analtemp contains the 12 numbers for the months in one field >*and 12 numbers to be graphed in the second. >Create CURSOR csrResult (statvalue n(5), statmonth n(2)) >Select * from analyse into cursor csrResult >* (SalesID c(6), SaleName Character(20)) >LOCAL lnCol, lnRow >WITH THISFORM.oChart > *** Set the number of fields in the cursor > .ColumnCount = FCOUNT( 'csrResult' ) - 1 > > *** Set the number of rows to the number of records in the cursor > .RowCount = RECCOUNT( 'csrResult' ) > > *** Populate the DataGrid Object. > SELECT analyse > SCAN > .Row = RECNO( 'csrResult' ) > FOR lnCol = 1 TO .ColumnCount > .Column = lnCol > *** Since the first column is used for the category labels > *** We must increment our counter > .Data = EVALUATE( FIELD( lnCol + 1 ) ) > ENDFOR > ENDSCAN >ENDWITH >Grady,