Define a string
A string value
Populate the array with random string values
PortablE is heavily based on AmigaE (but not fully compatible unless the compatibility mode is used), so some AmigaE guides might help:http://cshandley.co.uk/amigae/ch_9b.html
(this fully applies to PortablE, except that "String()" must be changed to "NewString()".)http://cshandley.co.uk/amigae/ch_8e.htmlhttp://cshandley.co.uk/amigae/ch_8d.html
(note that :ARRAY is not allowed, as it has a different meaning in PortablE, so it needs a type like :ARRAY OF CHAR)http://cshandley.co.uk/amigae/ch_4g.html
(note that "" cannot be used as "[ 0 ]", unless OPT POINTER is used)
Jason Hulance wrote a good introduction to AmigaE, some of which you might find helpful:http://cshandley.co.uk/JasonHulance/beginner_171.html
(this should be really great for someone coming from C# or BASIC)http://cshandley.co.uk/JasonHulance/beginner_130.html
(beware that some of his suggestions are no-longer the best way to do it in PortablE, but they should still work)
If some of his code doesn't compile with PortablE, try adding OPT POINTER or else OPT AMIGAE to the top of the program.
* OPT POINTER allows ARRAY/STRING to be treated as PTR (and vice versa). But without this, arrays & strings are still pointers underneath, and so behave much like pointers (even if their intended usage is slightly different to PTR).
* OPT AMIGAE completely disables all type-checking, and adds back a few old-style things that I removed/renamed.
* e.g. OPT AMIGAE will be needed where he uses WriteF(), because PortablE replaced this by Print().
* Note that his example code "You probably don't want to do any of these" are normally detected as illegal by PortablE, although OPT AMIGAE will probably still allow them to compile!
I think I am a bit confused, for now, when it comes to arrays and PortablE.
E (PortablE & AmigaE) has a memory, array & string model very similar to that used by C, except that E has more & better string functionality built-in (basically what are called "e-strings"). I believe this is very different to C#, as that uses garbage collection & other stuff that radically changes how memory is handled.