Is there a way to pass a object to a sub.
Sub mnuWESave_Click
'pre : er is een tabel in het geheugen
'post : er is opdracht gegeven de tabel fysiek op te slaan
Sub mnuWESave_Click
SaveTable(tblWeight, "tblWeight.dat")
end sub
Sub SaveTable(aTable, aFileName)
'pre : a table in memory
'post : table has been writen to the disk
If FileExist (aFileName) = true Then
lvYesNo = Msgbox("bestand " & aFileName & " exists, overwrite?"," ", cMsgboxYesNo, cMsgBoxQuestion)
If lvYesNo =cYes Then
gvWE_tbl_Mutaties = false
aTable.SaveCSV(aFileName, ";", true)
End If
End If
End Sub
Sub mnuWESave_Click
'pre : er is een tabel in het geheugen
'post : er is opdracht gegeven de tabel fysiek op te slaan
Sub mnuWESave_Click
SaveTable(tblWeight, "tblWeight.dat")
end sub
Sub SaveTable(aTable, aFileName)
'pre : a table in memory
'post : table has been writen to the disk
If FileExist (aFileName) = true Then
lvYesNo = Msgbox("bestand " & aFileName & " exists, overwrite?"," ", cMsgboxYesNo, cMsgBoxQuestion)
If lvYesNo =cYes Then
gvWE_tbl_Mutaties = false
aTable.SaveCSV(aFileName, ";", true)
End If
End If
End Sub