Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
28
Task/Repeat/Gambas/repeat.gambas
Normal file
28
Task/Repeat/Gambas/repeat.gambas
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
Public Sub Main()
|
||||
|
||||
RepeatIt("RepeatableOne", 2)
|
||||
|
||||
RepeatIt("RepeatableTwo", 3)
|
||||
|
||||
End
|
||||
|
||||
'Cannot pass procedure pointer in Gambas; must pass procedure name and use Object.Call()
|
||||
Public Sub RepeatIt(sDelegateName As String, iCount As Integer)
|
||||
|
||||
For iCounter As Integer = 1 To iCount
|
||||
Object.Call(Me, sDelegateName, [])
|
||||
Next
|
||||
|
||||
End
|
||||
|
||||
Public Sub RepeatableOne()
|
||||
|
||||
Print "RepeatableOne"
|
||||
|
||||
End
|
||||
|
||||
Public Sub RepeatableTwo()
|
||||
|
||||
Print "RepeatableTwo"
|
||||
|
||||
End
|
||||
Loading…
Add table
Add a link
Reference in a new issue