How do you use it?
Dim a
Dim s As String: s = "apple orange"
a = Split(s)
‘a’ is unset?
How do you use it?
Dim a
Dim s As String: s = "apple orange"
a = Split(s)
‘a’ is unset?
See the description of the function Split in the Help of the Basic.
https://help.libreoffice.org/6.2/en-US/text/sbasic/shared/03120314.html
The result of the function is an Array. The Split function will split a longer string based on a delimiter character passed to the function as a parameter.
the trouble is I don’t understand his implementation of Split - in your link, why is he doing acrobatics with Join?? Join1 = Join(a(), “abc”) Any src of docs that explains Join(a(), “abc”)?? I did try https://i.imgur.com/A9yuyeF.png but it gave “Object variable not set” - why?? [any docs that explains the intricacies of BASIC and arrays IN PRACTICE]
An Array has not LEN() (length) property. A String has such property: one element of the String Array has LEN property.
An Array has LBound and UBound (lower and upper bound) property, but in this case it is determined by the DIM statement on your image.
https://wiki.openoffice.org/wiki/Documentation/BASIC_Guide/Arrays
Try it:
Dim a as Variant
Then try to get the LBound and UBound values of the variable ‘a’ after you get the result of the function SPLIT().