void _SetUpFolding(REALcontrolInstance instance, int type)
{       // Folder setup.

}


(REALproc) _SetUpFolding, REALnoImplementation, "Folding (Assigns platformType As Integer)"

Calm down. FIrst of all your initial post showed code that certainly will not work. Here above is code that works, and when used in RS you would call it like

myControl.Folding = 4

Your c-code did not show an argument in the method ( if I remember correctly ), and then you'll certainly crash.

long DummyFunc() {
        return 0;
}

REALmethodDefinition AM_Ma_Methods[] = {
{ (REALproc) DummyFunc, 0, "Value(Key as Object, assigns Value as Object)" },
};

That ain't gonna work,

a.

On Oct 21, 2010, at 8:33 AM, Theodore H. Smith wrote:


I can't unsubscribe and resubscribe to the plugins list to get individual mails or I'll lose all the answers in digest mode. But I haven't got a reply in a day's time still...

I haven't seen any official explanation of what is wrong with using assigns in plugins. Many of my plugin functions allow you to set, but not get values, using assigns.

Is assigns in global methods OK? Because I see MBS using assigns in global methods. I'm also using assigns in global methods.

One class even takes it further! It has a subclass that lets you set a value using assigns, whereas the superclass does not let you set a value.

Where is the limits on using assigns? Where is it documented?

Its also really annoying because I see this from Jason Parsley: "This issue needs to be corrected by the plugin author."

But not actually explaining what I'm doing wrong. Or if I'm doing anything wrong.

To me, it looks like RB is wrong.

Surely it's a bug in RB, if syntax that works in normal RB code, does not work in a plugin??? So it looks like either Jason did not bother to find out what is wrong, or he is denying the truth that it's a bug in RB.

--
http://elfdata.com/plugin/
"String processing, done right"



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

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

_______________________________________________
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