Hi.
I try to a .net method called getfield. I'm using PB.NET 12.5, but the getfield method exist from .net v.2.
The syntax for that method are (as documented in MSDN):
- Type.GetField Method (String)
- Type.GetField Method (String, BindingFlags)
Now, I need to use the second syntax, which expect two arguments, and the second one is of type BindingFlags Enumeration. Of course this isn't a problem. But how should I use that function if I need to write something similar to the following c# code:
FieldInfo myFieldInfo1 = myTypeB.GetField("field", BindingFlags.NonPublic | BindingFlags.Instance);
How can I write "BindingFlags.NonPublic | BindingFlags.Instance" ? Is there a way to pass two values with a logical operator in Powerbuilder (I guess not)? If not, is there any workaround?
Thank's in advance.
Andreas.