Please let me know if this is not permitted due to some rules I'm not aware of. Do I always use an apostrophe like this?
'
Sub Process_Globals
End Sub
Sub Globals
End Sub
Sub Activity_Create(FirstTime As Boolean)
CountWords(File.ReadString(File.DirAssets, "pg20795.txt"))
End Sub
Sub CountWords(Text As String)
Dim Words() As String = Regex.Split($"[\s,.()!?"\-]"$, Text)
Dim wordsLength As Map
wordsLength.Initialize
For Each word In Words
Dim count As Int
If wordsLength.ContainsKey(word) Then
count = wordsLength.Get(word)
count = count + 1
Else
count = 1
End If
wordsLength.Put(word, count)
Next
For Each word In Words.Length.Keys
Log($"${word}: {wordsLength.Get(word)}"$)
Next
End Sub
Sub Activity_Resume
End Sub
Sub Activity_Pause (UserClosed As Boolean)
End Sub '
Thanks
It's from the 5 minute 36 second point on your tutorial.