[Progress Communities] [Progress OpenEdge ABL] Forum Post: RE: Translate some Visual Studio code

  • Thread starter Thread starter DenDuze
  • Start date Start date
Status
Not open for further replies.
D

DenDuze

Guest
@Mike: ok but i guess that belongs to the consulting SmartComponent framework so i can't use that - or I'm I wrong about that? I never used something like this . @jquerijero: I also tried your approch but the oMethod is not a valid-object so I must do something wrong here. I used the following code to test: define variable oMethod as System.Reflection.MethodInfo no-undo. define variable oType as System.Type no-undo. define variable bindingAttr as System.Reflection.BindingFlags no-undo. define variable arrayVar as System.Object extent 3 no-undo. bindingAttr = System.Reflection.BindingFlags:Instance. bindingAttr = CAST(Progress.Util.EnumHelper:or(bindingAttr, System.Reflection.BindingFlags:NonPublic), System.Reflection.BindingFlags). oType = Progress.Util.TypeHelper:GetType("Verpigo.Extensibility.IPaymentHandlerExtension"). /* here both object are valid */ message program-name(1) skip valid-object(oType) skip valid-object(bindingAttr) view-as alert-box. oMethod = oType:GetMethod("HandlePayment", bindingAttr). // HandlePayment /* this gives me false back whle the function is defined there like Function HandlePayment(paymentMethodId As Integer, amount As Single, comment As String) As Boolean */ message program-name(1) skip 'omethod ' valid-object(oMethod) view-as alert-box. regards Didier

Continue reading...
 
Status
Not open for further replies.
Back
Top