Error XS0173 Type of IIF expression cannot be determined because there is no implicit conversion between '?' and 'string'
What's actually happening here is that oEWM was not declared (outcommented from converted code) within the class assigned to variable Self:oMailSends.
I can imagine some logic in the error message but it would be a lot clearer if the compiler could directly tell that it can't find oEWM. Maybe warning XS9073? The tooltip says Undeclared.
This is a class which opens emails.dbf, reads the account data from a setting file and more using a set of protected variables.
In the VO version we have the class variables include oEWM which is a reference to a splitwindow in which we show the mails. This is (yet) not defined in X#. SO I just wondered why the compiler doesn't directly tell me that oEWM is unknown within this line of code.
oEmailForm := NewEmail{Self, oCKEmail, cFromAccount, cSendType, lEverything, cRecordList}
oEmailForm:Show()
.......
Public Constructor(oCaller As MailSends, oInEmail As Chilkat.Email, cFromAccount As String, cSendType As String, lEverything As Logic, cRecordList As String) Strict Class NewMail
InitializeComponent()
Self:oMailSends := oCaller