Hi,
What would be an ABL equivalent of this code (c#)?
FileSystemWatcher watcher = new FileSystemWatcher();
// Add event handlers.
watcher.Changed += new FileSystemEventHandler(OnChanged);
private static void OnChanged(object source, FileSystemEventArgs e)
{
}
I did:
DEFINE VARIABLE watcher AS System.IO.FileSystemWatcher.
DEFINE VARIABLE fseh AS System.IO.FileSystemEventHandler.
watcher = NEW System.IO.FileSystemWatcher().
fseh = NEW System.IO.FileSystemEventHandler(watcher,onchange()).
but it is complaining that
method onchange returns a void so cannot be used in an expresssion.
TIA.
Parul.
In a procedure:
On a class:
Note, that for a procedure, the name of the internal procedure gets quoted, in a class the method name does not require/allow quotes.
Mike
Brilliant!!!!
Thank a lot.
-Parul.