New instances of an object with a button - please help

Hi
Hope anyone can help with a simple sample/solution.
Think i seach the entire world !!!
Want to make fx. 40 instances of an object ( chosen by user ) - in the "old Flash" there was eval();
- as i remember I could create multiple instances of an object like this:
int numberOfBikes = 40;
for (i = 0;i < numberOfBikes;i++){
newInstanceName = eval("bike"+i) ; // this is my only problem in the world - for now :o(
Bike newInstanceName = new Bike() ; // newInstanceName translated to example "bike12"
newInstanceName.moveTheBike(some arguments) ;
// YEAH - then I had 40 different bikes
Please - if anyone have a simple solution for that single line of code - 500 lines of complex array coding does not help a newborn !!!

You are at once on my Buddy list :o)
Now i have 40 bikes running all over town - looks pretty cool
This worked in my run method:
          int i;
          int numberOfBikes = 40;
          test bikes[] = new test[numberOfBikes];
          for (i = 0;i < numberOfBikes;i++)
            bikes[i] = new test();
          }This code in my while loop to call the Class method:
          for (i = 0;i < numberOfBikes;i++)
                     bikes.goAhead(gcon, H, V);
Cool - was a MEGA help !!!                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

Similar Messages

  • How to create authorisation object for save button please help in abap

    how to create authorisation object for save button please help in abap

    Hi
    In general different users will be given different authorizations based on their role in the orgn.
    We create ROLES and assign the Authorization and TCODES for that role, so only that user can have access to those T Codes.
    USe SUIM and SU21 T codes for this.
    Much of the data in an R/3 system has to be protected so that unauthorized users cannot access it. Therefore the appropriate authorization is required before a user can carry out certain actions in the system. When you log on to the R/3 system, the system checks in the user master record to see which transactions you are authorized to use. An authorization check is implemented for every sensitive transaction.
    If you wish to protect a transaction that you have programmed yourself, then you must implement an authorization check.
    This means you have to allocate an authorization object in the definition of the transaction.
    For example:
    program an AUTHORITY-CHECK.
    AUTHORITY-CHECK OBJECT <authorization object>
    ID <authority field 1> FIELD <field value 1>.
    ID <authority field 2> FIELD <field value 2>.
    ID <authority-field n> FIELD <field value n>.
    The OBJECT parameter specifies the authorization object.
    The ID parameter specifies an authorization field (in the authorization object).
    The FIELD parameter specifies a value for the authorization field.
    The authorization object and its fields have to be suitable for the transaction. In most cases you will be able to use the existing authorization objects to protect your data. But new developments may require that you define new authorization objects and fields.
    http://help.sap.com/saphelp_nw04s/helpdata/en/52/67167f439b11d1896f0000e8322d00/content.htm
    To ensure that a user has the appropriate authorizations when he or she performs an action, users are subject to authorization checks.
    Authorization : An authorization enables you to perform a particular activity in the SAP System, based on a set of authorization object field values.
    You program the authorization check using the ABAP statement AUTHORITY-CHECK.
    AUTHORITY-CHECK OBJECT 'S_TRVL_BKS'
    ID 'ACTVT' FIELD '02'
    ID 'CUSTTYPE' FIELD 'B'.
    IF SY-SUBRC <> 0.
    MESSAGE E...
    ENDIF.
    'S_TRVL_BKS' is a auth. object
    ID 'ACTVT' FIELD '02' in place 2 you can put 1,2, 3 for change create or display.
    The AUTHORITY-CHECK checks whether a user has the appropriate authorization to execute a particular activity.
    This Authorization concept is somewhat linked with BASIS people.
    As a developer you may not have access to access to SU21 Transaction where you have to define, authorizations, Objects and for nthat object you assign fields and values. Another Tcode is PFCG where you can assign these authrization objects and TCodes for a  profile and that profile in turn attached to a particular user.
    Take the help of the basis Guy and create and use.
    Regards
    ANJI

  • If scritp with Radio button - Please help

    Hi there.
    Please help me.
    in my form I have 4 Radio Buttons:
    1. Married
    2. Single
    3. Divorced
    4. Widowed
    (only one can be checked ... )
    now, there are following 6 input fields regarding the spouse.(like: name, family name etc....)
    im looking for script that all all other 6 fields regarding the spouse will be invisible. BUT if user checked:married, (only Married) all other 6 fields will become,ready for input + required.
    Thanks for your help.
    Please guied me step by spet, as im new with that.

    Have you tried to create 4 radio buttons all with the same name but different "Export" values and observed what happens when you check each button?
    You can see the value of the radio button group if you use the JavaScript console.
    Assuming you have named the radio buttons "Marital Status" then you can use the following code in the JavaScript console to observe the value available to JavaScript:
    this.getField("Marital Status").value;
    The Acrobat JavaScript Console (Your best friend for developing Acrobat JavaScript
    You then need to decide with what action to use to test the value of the radio button group and adjust the fields as needed.
    Since you will be using the same script for all radio buttons, I would suggest using a document level function to manipulate the spouse's fields. I would also use a hierarchical field name for the fields. Prefix all the spouse's field with "Spouse.".
    You then could use the following document level function in the "Mouse Up" action for each of the buttons:
    function CheckMaritalStatus(cStatus) {
    this.resetForm(["Spouse"]);
    this.getField("Spouse").required = false;
    this.getField("Spouse").display = display.hidden;
    this.getField("Spouse").readonly = true;
    if(cStatus == "Married") {
    this.getField("Spouse").required = true;
    this.getField("Spouse").display = display.visible;
    this.getField("Spouse").readonly = false;
    return true;
    You then use the following code for the "Mouse Up" action in each of the Radio Buttons:
    CheckMaritalStatus(this.getField(event.target.name).value);
    Entering Document Scripts

  • I downloaded the new version of firefox, now my flash player wont work, the html text box is gone and so is the back and forward buttons. please help??

    I downloaded the new version of firefox, now I cant watch any movies, the html text box is totally gone, and so is the back and forward website buttons, please help? can i just have the old version back?

    Not sure whether for instance you initially had a Yahoo optimised version of Firefox, and have now overwritten it with an official Mozilla version. Although the Mozilla version should NOT add unwanted features, but the Yahoo version may well do.
    If you merely need to find the Yahoo emails page quickly just add it as a bookmark or as a bookmark on the Bookmarks toolbar and make sure that is visible.
    Clicking the star icon on the location bar whilst looking at your emails will bookmark the page.
    * [[How to use bookmarks to save and organize your favorite websites]]
    * [[Bookmarks Toolbar - Display your favorite websites at the top of the Firefox window]]
    I do not use Yahoo myself,and am not sure what add-ons are available. You could search yourself using
    * FirefoxButton -> add-ons
    ** see [[Find and install add-ons to add features to Firefox]]
    ** examples [https://addons.mozilla.org/en-us/firefox/addon/yahoo-toolbar/ yahoo toolbar] & [https://addons.mozilla.org/en-us/firefox/addon/yahoo-mail-notifier/ mail notifier]
    * also look at Yahoo's own information such as http://help.yahoo.com/tutorials/toolbar/cl3/c3_ff_toolbar1.html

  • I am deleting files through my trash in my macbook pro (2010) and then emptying the trash can, but my hard disk space is not increasing! i recently upgraded to lion and the problem is new, wasn't the same with snow leopard! HELP!!!!!

    i am deleting files through my trash in my macbook pro (2010) and then emptying the trash can, but my hard disk space is not increasing! i recently upgraded to lion and the problem is new, wasn't the same with snow leopard! HELP!!!!!
    When i press command+I (Get Info) i see that there is 140 GB "Available Space" on my hard disk but when i click on my hard disk icon on the desktop, and then press "space" i only see 102 GB free!! What the f*???
    Please HELP!!!!!! Getting second thoughts on Lion!!!!

    Hi b,
    Have you restarted yet?

  • I just bought a new iPhone and accidentally backed it up with my old iPhone backup, I do not want this. I lost everything on my new phone and I need it back. PLEASE HELP! This includes pictures and texts, etc.

    I just bought a new iPhone and accidentally backed it up with my old iPhone backup, I do not want this. I lost everything on my new phone and I need it back. PLEASE HELP! This includes pictures and texts, etc.

    So just to be clear, when you say "just bought" how long ago was that? Is it on this new iPhone that you had pictures, texts, etc that you want? Were you backing up to iCloud or onto iTunes?
    This may not help for everything but if you go to iCloud.com and log in, are you able to find your pictures there?

  • HT201209 I'm new to this an yesterday I bought 65$ worth of iTunes music using a iTunes gift card. Then I got these emails saying I am being billed again????? What do I do???? I'm very frustrated with this. Please help me

    yesterday I bought 65$ worth of iTunes music using a iTunes gift card. Then I got these emails saying I am being billed again????? What do I do???? I'm very frustrated with this. Please help me

    What e-mail are you talking about?
    What exactly did it say?
    Are you sure that the e-mail was not your receipt?

  • My iphone is not charging or showing in my computer. but its getting charged via wall apple charger.. Not able to connect with itunes.. please help.... :(

    My iphone is not charging or showing in my computer. but its getting charged via wall apple charger.. Not able to connect with itunes.. please help....

    No it doesn't. Sometimes it make a sound that it should when connecting but that is it. Never actually charges or syncs. And it is a brand new cord.

  • HT3939 i purchased iphone 5c from ebay india . after 35 days i updated software n from that day phone battry is not workin well , getting dry in 4 hrs . i m reaaly ****** with phone performace , please help or suggest

    i purchased iphone 5c from ebay india . after 35 days i updated software n from that day phone battry is not workin well , getting dry in 4 hrs . i m reaaly ****** with phone performace , please help or suggest

    Ebay is not an official reseller.  Return it if you can for a refund.
    Basic troubleshooting from the Users Guide is reset, restart, restore (first from backup then as new).  Try each of these in order until the issue is resolved.

  • Microphone of my iphone is not working when i call anyone nobody can listen but me, its working with headphone but its also working with videocam recording, please help me to solve this probelm.

    microphone of my iphone is not working when i call anyone nobody can listen me its working with headphone. but it is working with videocam recording, please help me to solve this probelm.

    Try this:
    1. Reset the iPhone by pressing and holding the sleep/wake and home buttons and releasing them, when the Apple logo appears on the display. Now test again.
    2. If the issue persists: Restore the iPhone without any of your own content, using this description from Apple: http://support.apple.com/kb/HT4137
    3. If the issue persists, Your iPhone need repair.

  • I want to downgrade my 2011 mac mini server to mac os x, i want to downgrade my 2011 mac mini server to mac os x i have the disks but the mini willl not reboot the apple changing to a circle with a line please help-

    i want to downgrade my 2011 mac mini server to mac os x i have the disks but the mini willl not reboot the apple changing to a circle with a line please help-

    bpruse,  I may be completely off-track for your issue, but I had a similar situation where I wanted to downgrade a Mac Pro from Server to plain OS X and it would not boot from the OS X install disk.
    I was attempting to use a full-install OS X.6.x disc with an earlier SL version than that which originally came installed on the Mac Pro.  After two or three hours of fiddling, I figured it out and used the discs that came with the system.
    However, I don't know how that would work in your case if this is the mini server-version.  I'm sure the disks would only have Server on them.  Worse-case scenario, find out which X.6.x the OEM disc is installing and get an OS X disc with a new installer.
    HTH.
    lnail

  • My instagram account won't link in with my iphone please help

    my instagram account won't link in with my iphone please help... I can't upload any of my photos to instagram

    Won't like to what? Are you saying you can't access your camera roll from the Instagram app? Check Settings>Privacy>Photos and make sure Instagram is set to "On". You can't use the share button from a photo in your camera roll to post a picture to Instagram if that's what you're trying to do. That's not a feature of iOS.

  • My ipod generation 5 will not come out of recovery mode. i was simply updating my software and this happened. it will not let me restore it comes up with and error. please help, thanks.

    my ipod generation 5 will not come out of recovery mode. i was simply updating my software and this happened. it will not let me restore it comes up with and error. please help, thanks.

    Hey erinoneill24,
    Thanks for using Apple Support Communities.
    Sounds like you can't update your device. You don't mention an error that it gives you. Take a look at both of these articles to troubleshoot.
    iPod displays "Use iTunes to restore" message
    http://support.apple.com/kb/ts1441?viewlocale=it_it
    If you can't update or restore your iOS device
    http://support.apple.com/kb/HT1808?viewlocale=de_DE_1
    If you started your device in recovery mode by mistake, restart it to exit recovery mode. Or you can just wait—after 15 minutes the device will exit recovery mode by itself.
    Have a nice day,
    Mario

  • IPhone 4s not being recognized and cannot be activated for service--what does this mean? I can't sync with iTunes. Please help

    iPhone not being recognized and cannot be activated for service--what does this mean? I can't sync with iTunes. Please help.
    When I connect iPhone to USB iTunes is giving me the above message. Please advise if you know the fix.
    Thanks,
    Lina1116

    did you find a fix?

  • My Ipod wont Sync with ITunes! Please Help!

    My Ipod wont Sync with ITunes! Please Help! I have the latest version of Itunes, but my ipod will not sync with my laptop. The diagnostic test has no answers and says everything is normal. When i try to sync, it says "an unknown error occurred (-39)". Any suggestions?

    check for any viruses

Maybe you are looking for

  • Planned Order creation for Sales Order and Purchase Order

    Hi We have a following requirement. In normal scenario when we have demand for material  which was created by MD61 and in addition to that if there is Sales Order the 1st planned order gets revised.To better expalin this consider possible scenario Yo

  • Changing my Apple ID and its associated email address

    For the past 6 years or so I have used the same Apple ID and email. It started out as an Aol account and is now my [email protected] as my Apple ID. I want to change my Apple ID and its associated email account to Gmail since that is what I use more

  • Solution Database search option doesn't work

    Hi, Iu2019m working withSAP Solution Manager 7.0 (SID=SMG) is at SP 17. SAP_BASIS 700 0016 SAPKB70016 SAP Basis Component SAP_ABA 700 0016 SAPKA70016 Cross-Application Component ST-PI 2005_1_700 0006 SAPKITLQI6 SAP Solution Tools Plug- In PI_BASIS 20

  • SAP NetWeaver 7.01 ABAP Trial Version on Vista Ultimate Issue

    Hi, I am trying to install SAP NetWeaver 7.01 ABAP Trial Version on windows vista ultimate 32 bit. when i check MaxDBSAPNWPREV.log Tue Mar 17 08:30:19 GMT 2009 MaxDB sdbinst: starting installation phase of package SQLDBC 77 7.7.04.23 32 bit Tue Mar 1

  • Defining keys on user defined tables

    Regarding tables of type 'lines' (in document or master data). I want to define a unique key for the DocEntry fields and some other user-field (so I could restrict the user to add only 1 type of line for each master record), but the problem is that k