Dialog is not a View. So before your code runs, when the RTE compile your code, RTE complains that there is no such a method called get-position in Dialog. That is to say, the error you meet is not a runtime error, but a compile error. If you value (dlg isa View) separately, you will find the result is "false" instead of "true".
--- 前川享仁 <[EMAIL PROTECTED]> からのメッセ ージ: > Hi gurus, > I am very confused about Dialog and View. > > I wrote a sample code like bellow. > -------------------------------------------------------- > {value > let dlg:Dialog = {Dialog} > let box:VBox = {VBox "hello."} > {dlg.add box} > > {if (dlg isa View) == true then > {dlg.get-position} > } > } > > ---------------------------------------------------------- > > I've read online help(Curl 3.0.4) about the operator > 'isa'. > it says 'isa' returns true when its left operand is > a instance > of the same type or subtype of the right operand. > > If so, why this code cannot run. get-position is the > View's > method, as you know. > > Please tell me what I misunderstand. > > Regards. > > -- > ----- > 前川 享仁/Maekawa Takanobu > e-mail:[EMAIL PROTECTED] > CANSOFT,INC.Tel:044(969)9747 Fax:044(969)9748 > http://www.cansoft.co.jp/ > > ******************************************* > To unsubscribe from this list, send a mail to: > mailto:[EMAIL PROTECTED] > To contact a human list administrator, send a mail > to: > mailto:[EMAIL PROTECTED] > To recieve a list of other options for this list, > send a mail to: > mailto:[EMAIL PROTECTED] > ******************************************* To unsubscribe from this list, send a mail to: mailto:[EMAIL PROTECTED] To contact a human list administrator, send a mail to: mailto:[EMAIL PROTECTED] To recieve a list of other options for this list, send a mail to: mailto:[EMAIL PROTECTED]