Posted on 2000-04-13
I have a function, sort inside of a module, with parameters as such:
Public Sub Sort(SortCol As Integer, LastRow As Integer, Optional FirstRow As Integer = 1, Optional direction As String = "a", Optional index As Integer = 0)
I try to call this function from within a form as such:
something = Sort(location, grid.Rows)
where something is a variant.. it's not dimmed..
location is an integer
grid is a flexgrid
I get an error "Compile error: Expected function or variable".
What's wrong? How do I call this function?