« REAL Studio UK User G… | Home | Tip of the day: Rende… »

Addressbook classes updated

29 06 11 - 13:19 With 11.2 we rewrote so far a couple of plugin parts. InstantMessageMBS, ABAddressbookMBS, IORegistryMBS and related classes got a few bigger changes. For example see this code snippets:

dim a as new ABAddressbookMBS

// old code

dim ga as ABGroupArrayMBS = a.groups

dim i as integer = ga.Count-1
for i as integer = 0 to c
  AddGroup ga.Item(i)
next

// new code

dim ga() as ABGroupMBS = a.groups
for each g as ABGroupMBS in ga
  AddGroup g
next

Old code used ABGroupArrayMBS class for an array. You needed to call count and item() functions. Now we changed that to use Real Studio arrays. So you can use For Each...Next loops and all the array functions in Real Studio like pop and ubound.
No comments

  
Remember personal info?

Emoticons / Textile

Comment moderation is enabled on this site. This means that your comment will not be visible on this site until it has been approved by an editor.



Notify:
Hide email:

Small print: All html tags except <b> and <i> will be removed from your comment. You can make links by just typing the url or mail-address.