New topic: 

Old-style Constructor for MKS Plugin

<http://forums.realsoftware.com/viewtopic.php?t=38025>

         Page 1 of 1
   [ 1 post ]                 Previous topic | Next topic          Author  
Message        Jason_Adams          Post subject: Old-style Constructor for MKS 
PluginPosted: Wed Mar 09, 2011 5:17 pm                                 
Joined: Fri Nov 10, 2006 4:10 pm
Posts: 698                I'm trying to use Bob Delaney's MKS plugin for 
performing unit-based mathematics. I created an example straight out of the 
document that came with it:
Code:dim x, a, t As MKS
a=new MKS("2 m/s^2")
t=new MKS("4 s")
x=(1/2)*a*t^2

Pretty simple. But when I go to compile I'm notified for the a and t 
constructor lines that: "Old-style constructor methods are no longer supported. 
You should use "Constructor" instead." It then tells me that the parameters are 
not compatible with the functions...

Can someone please enlighten me as to what "new/old" constructor methods 
they're talking about? Is this an issue with the RB code or the plugin itself?

Thanks!     
_________________
Windows 7 Ultimate
RS Pro 2010r2.1

"Christianity has not been tried and found wanting; it has been found difficult 
and not tried." - G.K. Chesterton  
                             Top            Display posts from previous: All 
posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost 
timeSubject AscendingDescending          Page 1 of 1
   [ 1 post ]      
-- 
Over 1500 classes with 29000 functions in one REALbasic plug-in collection. 
The Monkeybread Software Realbasic Plugin v9.3. 
http://www.monkeybreadsoftware.de/realbasic/plugins.shtml

[email protected]

Reply via email to