|
|
Source code |
1 2 |
Dim sTest As String sTest = """" |
Date of registration: Jan 1st 2009
Location: Hanover, Germany
Occupation: Software Engineer
Hobbies: Hilbert Curves
|
|
Jabaco Source |
1 2 3 4 5 6 7 8 9 10 |
Public Function quote(s As String) As String quote = Chr(34) & s & Chr(34) End Function .... .... s = "Hello " & quote("Sailor") & "!" .... |
|
|
Jabaco Source |
1 2 3 4 5 6 7 8 9 |
Public Function quote(s As String, Optional quoteChar As String = Chr(34)) As String quote = quoteChar & s & quoteChar End Function .... MsgBox "hello " & quote("sailor") & "! " & quote("Happy", "'") & " To see you!" .... |
|
|
Source code |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
Public Sub main(ByJava args() As String)
Dim sTest As String
MsgBox Fct() ' OK
MsgBox Fct("a") ' OK
MsgBox Fct("a", "b") ' OK
MsgBox Fct(, "w") ' FEHLER!
End Sub
Private Function Fct(Optional ByVal sArg1 As String = "x", Optional ByVal sArg2 As String = "y") As String
Fct = sArg1 & sArg2
End Function
|
|
|
Source code |
1 2 3 4 5 6 7 8 9 |
Public Function FileReadLines( _
ByVal sFile As String, _
Optional ByVal bTrimLeft As Boolean = False, _
Optional ByVal bTrimRight As Boolean = False, _
Optional ByVal bRemoveEmptyLines As Boolean = False, _
Optional ByVal lTabSpaces As Long = 2, _
Optional ByVal sCutAt As String = vbNullString, _
Optional ByVal sLiteralDelimiter As String = "" _
) As String()
|
Date of registration: Jan 1st 2009
Location: Hanover, Germany
Occupation: Software Engineer
Hobbies: Hilbert Curves
Da müßte man aber erstmal zusammentragen, was der alles können müßte - und zur Gewinnung dieser Erkenntnisse müßte man es einmal händisch gemacht haben. Ich schreibe also mal mit. - Trotzdem: Jabaco ist schon Klasse!