Hi, Wondering, how can you address a string as an array in Visual Basic? This is mainly because I want to test the contents of a string against an array containing permitted characters. I assumed, that like C, a string could be addressed as an array i.e. blah = "Hello" echo blah(0) --> "H", but apparantly this is not the case. I can it can be done with built in VB for loops, copying the contents etc, but that seems horribly inefficient, and I read that the CopyMemory Win32Api function could be used to perform a significantly more effective conversion, but the article in question was somewhat truncated as to the details.
If someone could provide me with some examples, ideally involving the CopyMemory Api (if that is the most efficient method) - That'd be fantastic.
Thanks.
If someone could provide me with some examples, ideally involving the CopyMemory Api (if that is the most efficient method) - That'd be fantastic.
Thanks.