Detecting Parameter in Function-Call ...
Posted on 2000-03-16
I'm writing a function which has to write a given Message to :
1) a Rx-RichEdit (given parameter)
2) a LogFile on disk (given parameter)
Here's my function definition :
Function WriteMessage(rxreLog: TRxRichEdit ; Msg: String ; strLogFile: String ;
colKleur: TColor) : Boolean;
This is what I want to do :
If the user passes NIL for rxreLog, then the message should not be written to the rxRichEdit.
If the user passes '' for strLogFile, then the message should not be written to the logfile on disk.
Now my question :
How can I detect if the rxreLog-parameter is nil ?
The following statement doesn't work :
if rxreLog = nil then
Can someone please help me out with this ?
Thanx in advance.