L
Laura Stern
Guest
First, to answer your question, an array in .NET is just a class - as you've already demonstrated. It has methods and properties. Length is one of the properties. So just access it (someStrings;Length). Also, you don't need to use TypeHelper any more to create the object. You had to do that when we first introduced this, but no longer. I don't remember what version that changed in, but it's been a while now. So the full example could be: DEFINE VARIABLE someStrings AS CLASS "System.String[]" NO-UNDO. someStrings = NEW "System.String[]"(3). someStrings:SetValue ("Test", 0) . MESSAGE VALID-OBJECT (someStrings) SKIP someStrings:GetValue(0) SKIP someStrings:LENGTH VIEW-AS ALERT-BOX INFO BUTTONS OK.
Continue reading...
Continue reading...