On Feb 17, 2007, at 9:22 AM, Eric Richards 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



Doesn't have it.

You can just do
textbox.text = "some text"
textbox.selStart = 0
etc..

Since I haven't use VB in a while, I'm not sure what the point of WITH is..

Looks to me like VB didn't' have auto-complete so it developed a way to speed code entry by grouping similar code for a control into a method.

That's my best guess.

Terry

(Never used VB myself.)

_______________________________________________
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