generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Argument/Parameter

Previous Thread :: Next Thread 
Thunderx10 is not online. Thunderx10
Joined: 17 Jun 2009
Total Posts: 2316
06 Feb 2012 10:59 PM
Which one is which?

    function Stuff(AP) --AP is a argument?
        return AP
    end
    
    print(Stuff("Hello")) --"Hello" is a parameter?
Report Abuse
Thunderx10 is not online. Thunderx10
Joined: 17 Jun 2009
Total Posts: 2316
06 Feb 2012 11:01 PM
AFF, is this correct? I think you're the one who told me these, I've just forgotten where the Parameter is, and where the Argument is..
Report Abuse
Thunderx10 is not online. Thunderx10
Joined: 17 Jun 2009
Total Posts: 2316
06 Feb 2012 11:07 PM
Oh are these backwards?

http://wiki.roblox.com/index.php/Arguments_and_Parameters
Report Abuse
StygianBlade is not online. StygianBlade
Joined: 15 Sep 2011
Total Posts: 426
06 Feb 2012 11:29 PM
function Stuff(AP) --Paramater
return AP
end

print(Stuff("Hello")) --Argument


Paramaters are the values added with the function definition
(
function foo(param1, param2, param3, param4) --values inside of () are paramaters
print(param1..param2..param3..param4)
end
)

Arguments are the values that are added to the function call
( foo("These ", "are ", "all ", aguments") )
Report Abuse
LuisPambid is not online. LuisPambid
Joined: 31 Mar 2011
Total Posts: 532
07 Feb 2012 05:16 AM
Nice explanation.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image