C# to ABL - Environment.SpecialFolder.Desktop

Posted by Paul Mowat on 28-Apr-2016 09:05

Hi,

How would I convert the following to ABL

Environment.GetFolderPath(Environment.SpecialFolder.Desktop);


I can only find System.Environment+SpecialFolder when looking in architect but it doesn't show any of the enum values.

Not sure how to deal with this in order to get the enum values. Also what does the + mean? I've not came across that before.

Thanks

Paul

Posted by Mike Fechner on 28-Apr-2016 09:22

message System.Environment:GetFolderPath("System.Environment+SpecialFolder":Desktop)
 
 

All Replies

Posted by Mike Fechner on 28-Apr-2016 09:22

message System.Environment:GetFolderPath("System.Environment+SpecialFolder":Desktop)
 
 

Posted by tpavlovic on 28-Apr-2016 09:26

You don't need the quotes.

MESSAGE System.Environment:GetFolderPath(System.Environment+SpecialFolder:Desktop)

   VIEW-AS ALERT-BOX INFO BUTTONS OK.

Posted by Paul Mowat on 28-Apr-2016 09:30

Thanks Both. Is it just a case of architect not being clever enough to deal with it due to the + which is why no enums were shown with the assist?

Posted by tpavlovic on 28-Apr-2016 09:50

The Architect is not clever at all.

Posted by Lieven De Foor on 28-Apr-2016 09:53

+ is used for inner classes.

While you can't create those in ABL, they are supported for .NET

This thread is closed