![]() |
|
|||||||
| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
| Questions & Help Needed Post any question regarding Basic4ppc. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
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 |
|
|||
|
Quote:
In the first moment I didn't understand your solution, but when i looked better in the help I saw what you ment. And yes it works. Thanks ![]() |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Passing a value back from a dll | Ricky D | Questions & Help Needed | 2 | 10-25-2008 10:00 AM |
| Passing a control as a parameter | AHeroMenKill | Questions & Help Needed | 3 | 06-18-2008 03:17 PM |
| Passing arrays to Subs. | jesb4ppc | Questions & Help Needed | 6 | 04-15-2008 06:03 PM |
| Passing arrays in B4PPC6? | Frank | Questions & Help Needed | 1 | 01-14-2008 01:15 PM |
| Passing Args | Cableguy | Questions & Help Needed | 19 | 11-10-2007 05:45 AM |