On Jan 3, 2006, at 10:44 PM, Carlos M wrote:

If I use the following

Function foo() As String
  Dim ef As New EditField
  Dim s As String = "anytext"
  ef.Text = s
  Return ef.Text
End Function

it works and "anytext" is returned.

Questions:

1. Is it ok to create an EditField or any other control this way? I
presume it's not, but couldn't find an answer for this on the LR or
User's guide.

It is not supported for objects subclassed from RectControl, which includes editfields, listboxes,.. A Timer, on the other hand, can be instantiated by New.


2. If 1 yes: If instead of line "ef.Text = s" I use the AppendText
method (ef.AppendText s) it does not work. Why?


I think that follows from the above. :-)


Best,


Jack
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to