Send_Message and Exec_Method

OK, so we deprecated the Send_Message function for OI 10…

… but before you worry about your apps being broken don’t despair because it still works as it ever has.  It has actually been replaced by a new function named Exec_Method which exposes the same interface as Send_Message, with the added bonus that it can support more than four parameters, so it’s basically a straight drop-in replacement when you need to use it.

Why did we do this?  Well, there’s a couple of reasons really:

  • When talking about object-based systems the usual jargon includes references to properties, methods and events. However, with OI we’ve always used the term “messages” when referring to an object’s methods because of the Send_Message function.  We thought it was about time to use more standard terminology, like we do with the Basic+ OleExecMethod function for example.
  • Send_Message is very close to the name of the core Windows API SendMessage function and sometimes it’s just too confusing (and annoying) trying to explain which one you actually mean when you’re discussing how to manipulate an object.

Actually Send_Message isn’t the only casualty, we’ve deprecated another well-known function too, but we’ll leave the details of that one for another post…

[Edit: 24 Apr 13 – Call_Method renamed to Exec_Method]

One thought on “Send_Message and Exec_Method

  1. Pingback: The Utility function | Building OpenInsight 10

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s