Is there any way to access non-static System.String methods/

Posted by Haikarainen on 27-Jun-2012 09:02

Title should be enough to describe my problem, but just to be clear:

DEFINE VARIABLE thisisastring AS CHARACTER.

thisisastring:Split( .. ).                          <- FAILS

CAST(thisisastring, System.String):Split( .. ).     <- FAILS

DEFINE VARIABLE thisisalsoastring AS System.String. <- FAILS

Is this one of those things I should try and work-around using C#, Visual Studio and assemblies?

Thanks!

All Replies

Posted by Admin on 27-Jun-2012 11:06

Try

CAST(BOX(thisisastring), System.String):Split ()

Box makes the CHARCTER a System.Object

Posted by Haikarainen on 28-Jun-2012 02:28

Thank you, this did indeed work!

This thread is closed