On Feb 17, 2007, at 8:51 AM, Norman Palardy wrote:


On Feb 17, 2007, at 4:41 AM, Francesco Maida wrote:

* Is it possible to use the sentence WITH in Realbasic? In Visual
Basic I used to write code like this:

WITH textbox
   .Text = "Insert Text Here"
   .SelStart = 0
   .SelLength = Len(.Text)
END WITH

No such syntax exists in RB

The equivalent would be to write it out. Assume that Textbox is the name of an EditField.

Textbox.Text= "Insert Text Here"
Textbox.SelStart = 0
Textbox.SelLength = Len(Textbox.Text)

Not that much more code.

Terry

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

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to