I am using a TDBgrid. My users can select diffent rows in the grid and based on that selection I create a file.I need to send the index of the selected row and the bookmark to another sub.
my code is
Dim Bookmark As Variant
Dim i As Integer
If mMax > 0 And Grd.SelBookmarks.Count > 0 Then
For i = 0 To Grd.SelBookmarks.Count - 1
Call CreateFile(Grd.SelBookmarks(i, Array(miColumn1_COL, Bookmark )))
Next
When I run my code I get an error "Wrong number of arguments or invalid properity assigned."
Can someone help.
my code is
Dim Bookmark As Variant
Dim i As Integer
If mMax > 0 And Grd.SelBookmarks.Count > 0 Then
For i = 0 To Grd.SelBookmarks.Count - 1
Call CreateFile(Grd.SelBookmarks(i, Array(miColumn1_COL, Bookmark )))
Next
When I run my code I get an error "Wrong number of arguments or invalid properity assigned."
Can someone help.