I am using the following code in 2 seperate applications to sort the data in a MSFlexGrid:
Private Sub Grid1_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
'Sort the grid based on the column clicked.
Static blAscending As Boolean
If Button = vbLeftButton Then
If Grid1.Rows > 1 And Grid1.MouseRow = 0 Then
Grid1.Sort = flexSortStringAscending
End If
End If
End Sub
The problem is, it works just fine in one app, but not the other, I get the following error when compiling:
Compile Error: Can't Find Project or Library on the line that says:
Grid1.Sort = flexSortStringAscending
Both projects have the same references checked and, if I move the project that isn't working to another pc, it works fine????
Any suggestions would be much appreciated.
Jake
Private Sub Grid1_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
'Sort the grid based on the column clicked.
Static blAscending As Boolean
If Button = vbLeftButton Then
If Grid1.Rows > 1 And Grid1.MouseRow = 0 Then
Grid1.Sort = flexSortStringAscending
End If
End If
End Sub
The problem is, it works just fine in one app, but not the other, I get the following error when compiling:
Compile Error: Can't Find Project or Library on the line that says:
Grid1.Sort = flexSortStringAscending
Both projects have the same references checked and, if I move the project that isn't working to another pc, it works fine????
Any suggestions would be much appreciated.
Jake