|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Events with return typesexamples in the user's guide shows this: A class level variable with events: Private WithEvents EvalIterator As Evaluator Evaluator is a class that exposes only one event. This is the definiton of the event in Evaluator Class (found in the object browser): Public Event OnEvaluate(ByVal evaluator As SupplierLibrary.Evaluator) As SupplierLibrary.Engine_Action The example has this event handler: Private Function EvalIterator_OnEvaluate(ByVal evaluator As Evaluator) As Engine_Action Handles EvalIterator.OnEvaluate 'code goes here Return Engine_Action.Continue End Function Question: I understood events can not have return types. How this library could do it? ebustama***@xstratacoal.com wrote:
Show quoteHide quote >I am using a library provided by a software supplier. One of the The SupplierLibrary is probably written in C#. There are no Sub() >examples in the user's guide shows this: > >A class level variable with events: >Private WithEvents EvalIterator As Evaluator > >Evaluator is a class that exposes only one event. >This is the definiton of the event in Evaluator Class (found in the >object browser): > >Public Event OnEvaluate(ByVal evaluator As SupplierLibrary.Evaluator) >As SupplierLibrary.Engine_Action > >The example has this event handler: > >Private Function EvalIterator_OnEvaluate(ByVal evaluator As Evaluator) >As Engine_Action Handles EvalIterator.OnEvaluate > > 'code goes here > > Return Engine_Action.Continue >End Function > >Question: I understood events can not have return types. How this >library could do it? > > > procedures in C#, so they are all by default functions. Tom
Collections challenge (MRU)
Can you insert elements into an XML file that exists as a string? MIDI guitar sheet music player in .net Createing the Domain searce dialog Refresh my memory on datatables, datasets etc. Changing the checked state of Dynamically added checkboxes Enum and FlagsAttribute ASP.net 2.0 Users (aspnet_Users table) create constraint problem Enum and Database question Release File |
|||||||||||||||||||||||