Public Function FromArray(extends s as String, sourceArray() as String, Delimiter as String) as String
return Join( sourceArray, Delimiter )
End Function
I get
"Parameter s expects type String, but this is type No type."
Dim TampText, TampTab(-1) as String
Dim PressPap as New Clipboard
If Keyboard.AsyncAltKey and PressPap.TextAvailable Then
TampText = PressPap.Text
Else
TampText = "Line 1" + EndOfLine.Windows + "Line 2" + EndOfLine.Windows + "Line 3"
MessageBox "copy the 3 lines below on the clipboard :" + EndOfLine + TampText
End If
TampText = TampText.ReplaceLineEndings(EndOfLine.macOS)
TampTab = TampText.Split(EndOfLine.macOS)
MessageBox "Count of items = " + str(TampTab.Count) + EndOfLine + String.FromArray(TampTab, "<-->")
What version are you using ? As there may be other reasons why this wont work
It may be there already IS a string module so you can’t define a new one
EDIT - if you using 2018r4 then there IS already a module in the framework called String so you cannot define your own string module
Basically you CANT make this work in any version that already has a string module already
What version are you using ? As there may be other reasons why this wont work
It may be there already IS a string module so you can’t define a new one
2018R3 is the last version covered by my license. Guess my next license might be when API2, Web2, and Android are considered stable … unless I have defected by then ….
EDIT - if you using 2018r4 then there IS already a module in the framework called String so you cannot define your own string module
Basically you CANT make this work in any version that already has a string module already
How can you see if a version has a String module already?
sometimes you can write code that assumes one
I tried
dim t as text = string.totext("123")
and the message I got is one that doesnt say “String” as a module doesnt exist but that ToText is an extension method - which means it is an extension method IN the String module.
There are other ways too