Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
15
Task/Empty-string/Gambas/empty-string.gambas
Normal file
15
Task/Empty-string/Gambas/empty-string.gambas
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
Public Sub Main()
|
||||
Dim sString As String[] = ["", "Hello", "world", "", "Today", "Tomorrow", "", "", "End!"]
|
||||
Dim sTemp As String
|
||||
Dim siCount As Short
|
||||
|
||||
For Each sTemp In sString
|
||||
If sString[siCount] Then
|
||||
Print "String " & siCount & " = " & sString[siCount]
|
||||
Else
|
||||
Print "String " & siCount & " is empty"
|
||||
End If
|
||||
Inc siCount
|
||||
Next
|
||||
|
||||
End
|
||||
Loading…
Add table
Add a link
Reference in a new issue