Go to Post That's co-oper-tastic. - anyheck [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 22-02-2015, 15:08
VaneRaklan VaneRaklan is offline
Registered User
FRC #2557 (The SOTABots)
Team Role: Programmer
 
Join Date: Feb 2015
Rookie Year: 2014
Location: Tacoma, WA
Posts: 18
VaneRaklan is an unknown quantity at this point
Passing in variables into a command via command group

Hello people of the world! Its me again, with another question pertaining to programming. So I am having trouble figuring out how to pass an argument into a command in a Command Group. I don't know if it a formatting thing within the command itself or if I am doing something else wrong. What I mean by passing the argument is say I have addSequential(new AutoDrive()); and I want to pass in a speed for the different times that I want to call it. So in turn i would say addSequential(new AutoDrive(.5)); or AutoDrive(1) or something like that. Anyone know how to do this?
Reply With Quote
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 22:30.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi