Real Software Forums
http://forums.realsoftware.com/

Need Dictionary, Collection, and Date in Plugin...
http://forums.realsoftware.com/viewtopic.php?f=5&t=47055
Page 1 of 1

Author:  FPN7670 [ Sun Feb 24, 2013 3:14 pm ]
Post subject:  Need Dictionary, Collection, and Date in Plugin...

My plugin (a Module) needs to create, (manipulate in some cases), and return the following types/classes:

Dictionary
Collection
Date
MemoryBlock
String
Integer/Int__/UInt__
Single/Double
Boolean

... The Plugin SDK covers Strings, Arrays, MemoryBlocks, and numeric types, but I'm not seeing anything about Dictionaries, Collections, or Dates.

How do I create, manipulate, and return instances of those 3 classes (Dictionary, Collection, and Date) from a plugin?


UPDATE:
I can see from some of the MBS Plugins that Dictionary and Date objects can be used/created in RB Plugins:

(Date) http://www.monkeybreadsoftware.net/basi ... thod.shtml
(Dictionary) http://monkeybreadsoftware.net/new-game ... vent.shtml

(plus many other examples from the MBS Plugin suite)

So, the question is: **how** is this being done when there is no mention of Dictionary or Date objects in the Plugin SDK?

Author:  FPN7670 [ Sun Feb 24, 2013 6:32 pm ]
Post subject:  Re: Need Dictionary, Collection, and Date in Plugin...

RESOLVED:

Just found this:

http://docs.realsoftware.com/index.php/ ... _Reference

eg:

REALclassRef dictionaryclass = REALGetClassRef("Dictionary");
REALobject dictionary = REALnewInstanceWithClass(dictionaryclass);
etc...

Page 1 of 1 All times are UTC - 5 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/