undefined Code:
  1. Dim k As Long
  2. For k = 0 To Me.VBFlexGrid1.Cols - 1
  3. Debug.Print "Debug.Print ColIndex= " & k & "   GetColKeyByIndex =  " & Me.VBFlexGrid1.ColKey(k)
  4. Next  
  5. 'Debug.Print ColIndex= 0   GetColKeyByIndex =
  6. 'Debug.Print ColIndex= 1   GetColKeyByIndex =
  7. 'Debug.Print ColIndex= 2   GetColKeyByIndex =
  8. 'Debug.Print ColIndex= 3   GetColKeyByIndex =
  9. 'Debug.Print ColIndex= 4   GetColKeyByIndex =
  10. 'Debug.Print ColIndex= 5   GetColKeyByIndex =
  11. 'Debug.Print ColIndex= 6   GetColKeyByIndex =
  12. 'Debug.Print ColIndex= 7   GetColKeyByIndex =
  13. 'Debug.Print ColIndex= 8   GetColKeyByIndex =
  14. 'Debug.Print ColIndex= 9   GetColKeyByIndex =
  15. 'Debug.Print ColIndex= 10   GetColKeyByIndex =
  16. 'Debug.Print ColIndex= 11   GetColKeyByIndex =
  17. 'Debug.Print ColIndex= 12   GetColKeyByIndex =
  18. 'Debug.Print ColIndex= 13   GetColKeyByIndex =
  19. 'Debug.Print ColIndex= 14   GetColKeyByIndex =
  20. 'Debug.Print ColIndex= 15   GetColKeyByIndex =
  21. 'Debug.Print ColIndex= 16   GetColKeyByIndex =
  22. 'Debug.Print ColIndex= 17   GetColKeyByIndex =
  23. 'Debug.Print ColIndex= 18   GetColKeyByIndex =
  24. 'Debug.Print ColIndex= 19   GetColKeyByIndex =

Debug.Print "Debug.Print ColIndex= " & k & " GetColKeyByIndex = " & Me.VBFlexGrid1.ColKey(k)=Null ?