How do i impliment this array

Hey everyone, just came across this forum looks quite good so I'll give it a go smile.gif
Just working through a book called 'Objects First with Java' and I'm stuck on exercise 4.31.
This is about a small auction program that has 4 classes - auction, bid, lot and person.
Here's the code:
Auction:
import java.util.ArrayList;
import java.util.Iterator;
* A simple model of an auction.
* The auction maintains a list of lots of arbitrary length.
* @author David J. Barnes and Michael Kolling.
* @version 2008.03.30
public class Auction
    // The list of Lots in this auction.
    private ArrayList<Lot> lots;
    // The number that will be given to the next lot entered
    // into this auction.
    private int nextLotNumber;
    private Lot selectedLot;
     * Create a new auction.
    public Auction()
        lots = new ArrayList<Lot>();
        nextLotNumber = 1;
     * Enter a new lot into the auction.
     * @param description A description of the lot.
    public void enterLot(String description)
        lots.add(new Lot(nextLotNumber, description));
        nextLotNumber++;
     * Show the full list of lots in this auction.
    public void showLots()
        for(Lot lot : lots) {
            System.out.println(lot.toString());
     * Bid for a lot.
     * A message indicating whether the bid is successful or not
     * is printed.
     * @param number The lot number being bid for.
     * @param bidder The person bidding for the lot.
     * @param value  The value of the bid.
    public void bidFor(int lotNumber, Person bidder, long value)
        selectedLot = getLot(lotNumber);
        if(selectedLot != null) {
            boolean successful = selectedLot.bidFor(new Bid(bidder, value));
            if(successful) {
                System.out.println("The bid for lot number " +
                                   lotNumber + " was successful.");
            else {
                // Report which bid is higher.
                Bid highestBid = selectedLot.getHighestBid();
                System.out.println("Lot number: " + lotNumber +
                                   " already has a bid of: " +
                                   highestBid.getValue());
     * Return the lot with the given number. Return null
     * if a lot with this number does not exist.
     * @param lotNumber The number of the lot to return.
    public Lot getLot(int lotNumber){
        if((lotNumber >= 1) && (lotNumber < nextLotNumber)) {
            // The number seems to be reasonable.
            Lot selectedLot = lots.get(lotNumber - 1);
            // Include a confidence check to be sure we have the
            // right lot.
            if(selectedLot.getNumber() != lotNumber) {
                System.out.println("Internal error: Lot number " +
                                   selectedLot.getNumber() +
                                   " was returned instead of " +
                                   lotNumber);
                // Don't return an invalid lot.
                selectedLot = null;
            return selectedLot;
        else {
            System.out.println("Lot number: " + lotNumber +
                               " does not exist.");
            return null;
    public void close() {
        for(Lot lot : lots){
            Bid highestBid=lot.getHighestBid();
            Person person=highestBid.getBidder();
            String personName=person.getName();
            String number = "" + lot.getNumber();
            if(lot.getHighestBid() == null) {
                System.out.println(number + ": " + lot.getDescription()+" has *not* been sold");
            else {
                System.out.println(lot.getDescription()+" has been sold to " );
    // Creates a new array list and stores all unsold items into notSold.
    // Returns all items in the new list.
   /* public ArrayList<Lot> getUnsold;
        ArrayList<String> notSold;
        Integer numberList = 1;
        notSold = new ArrayList<String>(); // Creates new array
        for(Lot lot : lots){ // Although it compiles, when I create an auction object
                             // it returns 'null pointer exception' here, any suggestions?
            if(lot.getHighestBid() == null)
                notSold.add(lot.getDescription());
                for(String unsold : notSold){
                    System.out.println(numberList + ": " + unsold);
                    System.out.println();
                    numberList++;
}        There are a few random things in there, just from me mucking around in other exercises.
Lot:
* A class to model an item (or set of items) in an
* auction: a lot.
* @author David J. Barnes and Michael Kolling.
* @version 2008.03.30
public class Lot
    // A unique identifying number.
    private final int number;
    // A description of the lot.
    private String description;
    // The current highest bid for this lot.
    private Bid highestBid;
     * Construct a Lot, setting its number and description.
     * @param number The lot number.
     * @param description A description of this lot.
    public Lot(int number, String description)
        this.number = number;
        this.description = description;
     * Attempt to bid for this lot. A successful bid
     * must have a value higher than any existing bid.
     * @param bid A new bid.
     * @return true if successful, false otherwise
    public boolean bidFor(Bid bid)
        if((highestBid == null) ||
               (bid.getValue() > highestBid.getValue())) {
            // This bid is the best so far.
            highestBid = bid;
            return true;
        else {
            return false;
     * @return A string representation of this lot's details.
    public String toString()
        String details = number + ": " + description;
        if(highestBid != null) {
            details += "    Bid: " +
                       highestBid.getValue();
        else {
            details += "    (No bid)";
        return details;
     * @return The lot's number.
    public int getNumber()
        return number;
     * @return The lot's description.
    public String getDescription()
        return description;
     * @return The highest bid for this lot.
     *         This could be null if there is
     *         no current bid.
    public Bid getHighestBid()
        return highestBid;
}Bid:
* A class that models an auction bid.
* It contains a reference to the Person bidding and the amount bid.
* @author David J. Barnes and Michael Kolling.
* @version 2008.03.30
public class Bid
    // The person making the bid.
    private final Person bidder;
    // The value of the bid. This could be a large number so
    // the long type has been used.
    private final long value;
     * Create a bid.
     * @param bidder Who is bidding for the lot.
     * @param value The value of the bid.
    public Bid(Person bidder, long value)
        this.bidder = bidder;
        this.value = value;
     * @return The bidder.
    public Person getBidder()
        return bidder;
     * @return The value of the bid.
    public long getValue()
        return value;
}Person:
public class Person
    // The name of this person.
    private final String name;
     * Create a new person with the given name.
     * @param name The person's name.
    public Person(String name)
        this.name = name;
     * @return The person's name.
    public String getName()
        return name;
}Question: Rewrite getLot so that it does not rely on a lot with a particular number being stored at index (number-1) in the collection. For instance, if lot number 2 has been removed, then lot number 3 will have been moved from index 2 to index 1, and all higher lot numbers will also have been moved by one index position. You may assume that lots are always stored in increasing order of their lot number.
So I know it's talking about an arraylist but I can't think how to implement it, I have tried a number of ways but can't seem to get my head round it. After I couldn't work out how to rewrite just the getLot I started spreading out and trying to add new arraylists in different classes and calling them but it ultimately just failed so now I was just wanting to get some ideas from people.

@ The OP....
Word of advice. Posting pages of code that are provided for YOU are not gonna be welcome on these forums. You can however take snippets of code and post them here and in turn ask a more precise question. For example....
I modified this method..
*post code
and get the following error in compiler
*post error                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

Similar Messages

  • I linux inode which contains 13 member array wich stores the actual block address of data .Similarly in windows how data is managed in disk ?. How many members in this array ?

    I linux inode which contains 13 member array wich stores the actual block address of data .Similarly in windows how data is managed in disk ?. How many members in this array ?

    Hello Vijay Nerkar,
    Your question is not related to Windows Forms General. What is the data you mean and also what is that array?
    If you are looking for something related to Windows File System, see some words here:
    http://en.wikipedia.org/wiki/File_system
    For example
    "Windows makes use of the
    FAT, NTFS,
    exFAT and ReFS file systems (the last of these is only supported and usable in
    Windows Server 2012; Windows cannot boot from it).
    Windows uses a drive letter abstraction at the user level to distinguish one disk or partition from another. For example, the
    path <tt>C:\WINDOWS</tt> represents a directory <tt>WINDOWS</tt> on the partition represented by the letter C. Drive C: is most commonly used for the primary hard disk partition, on which Windows is usually installed and from which it boots. This "tradition"
    has become so firmly ingrained that bugs exist in many applications which make assumptions that the drive that the operating system is installed on is C. The use of drive letters, and the tradition of using "C" as the drive letter for the primary hard disk
    partition, can be traced to
    MS-DOS, where the letters A and B were reserved for up to two floppy disk drives. This in turn derived from
    CP/M in the 1970s, and ultimately from IBM's
    CP/CMS of 1967.
    For more details, consider consult on MS Answers:
    http://answers.microsoft.com/en-us/windows
    Regards,
    Barry Wang
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How do I build this array?

    I have a vi that generates two time intervals in ms. One interval is between the time a light turns on and button 1 is released (time 1). The other interval is the time between the same release and the press of button 2 (time 2).
    The vi loops through the light flashing/button press sequence until the number of set trials equals
    the number of correct trials.
    I want to build an array that records time 1 and time 2 for each trial. Something like this
    0.1200 1.3123
    0.2400 1.8979
    0.3423 2.4567
    etc.
    The way I've got it, the array ends up being just time 1 and time 2 from the last trial.
    0.3423 2.4567
    How do I set this up to do what I want.
    My vi is attached.
    Attachments:
    newredconstant.vi ‏99 KB

    Hope this help!
    Cheers!
    Ian F
    Since LabVIEW 5.1... 7.1.1... 2009, 2010
    依恩与LabVIEW
    LVVILIB.blogspot.com
    Attachments:
    Array.vi ‏26 KB

  • How do I convert an array of BYTES (where each BYTE represents a bit) into a single Hex number?

    I am reading a signal from a USB-8451. This signal is stored as an array where each element represents a bit in the signal, but is stored in the array as a byte. How do I convert this array into a single Hex number. I attatched what I have so far, there are a few extra things to help me see what ia going on. One code uses Queue and the other uses arrays, let me know if you can help.
    Attachments:
    845x_EEPROMarrays.vi ‏27 KB
    845x_EEPROM.vi ‏26 KB

    mkssnwbrd wrote:
    ... so we can't introduce any other forms of signals or power into the circuit other than what the circuit already has. Trithfully I don't really know how I2C devices work, but my mentor here says that we can't use an I2C method becuase it will introduce voltage into the circuit and may damage out TCON chip.
    That makes absolutely no sense. What do you think is happening when you write the digital lines? You're setting a pin high. That voltage is being generated by the 8451x. I think you're not understanding what your mentor is saying. If it's an I2C device then you should be able to use the I2C function to simply talk to it. You still have not indicated what the device is, so there's little more I can say about that aspect of it.
    As far as the conversion is concerned, you basically need loop through your array of "bits", taking 16 at time since you said you have 16-bit values. It's not clear from your code whether your eventual goal is to get a numeric value or a string. This does not appear to be a subVI, so a simply numeric indicator formatted to display in hex format should be quite adequate. The array you are generating is an array of rings, whose datatype is I32, but they will have values of 0 or 1. You can use the example just posted, or you can use the attached variation.
    Attachments:
    Bits to Hex 2.vi ‏17 KB

  • I have a Build Array function within a case structure. This array gets populated properly but I am unable to pass this array out of the case structure.

    I'm including a .png file that shows how I've coded this array.  This is part of a subvi.  Do arrays/loops behave differently in subvi's than in vi's?
    Attachments:
    arrays and loops.png ‏29 KB

    Can you attach your actual VI?
    I think there are a few more problem areas, for example:
    Why are you reading "time Stamp 3" from a value property node with each iteration of the loop? Due to the speed of the loop is very unlikely that that value changes between iterations (and if it would, it would give unpredictable results!). Thus you should read that value once before the loop or better just wire from the actual terminal. Property nodes force synchronous execution and are several orders of magnitude slower than any other method of data transfer.
    LabVIEW Champion . Do more with less code and in less time .

  • How can i impliment on a B1 screen?

    Hi,
      Using this article (Associate a Crystal Report to your own form), i implimented the code in custom screens... but how can i impliment this on a B1 screen?
    Please help me.
    Thanks
    Prasanth

    Select it in the project library and you can work on it some more.

  • How to do like this with array?

    How to do like this with array?
    I have 2 constants array put in main while loop ( array1{6,6}; array2{4,4} ). Those arrays will be come the input data for st in the small while loop inside.
    The input data look like : [6,6],[4,4],[6,6],[4,4]...... I have to put input data to result array[8]. The method is:
    input data result data
    [6,6] --------------------------------------------> [6,6,0,0,0,0,0,0]
    [4,4] --------------------------------------------> [6,6,4,4,0,0,0,0] ( this period, just add each element in new array)
    [6,6] --------------------------------------------> [6,6,4,4,6,6,0,0]
    [4,4] --------------------------------------------> [6,6,4,4,6,6,4,4]
    [6,6,4,4,6,6,4,4] ( 1st period )
    When the las index of result data array is filled in, I have to collapse the result data array to be this array:
    ----------> collapse: [6,4,6,4,0,0,0,0] ( take the average of 2 continuous element add to new result data array)
    Next input data
    [6,6] --------------------------------------------> [6,4,6,4,6,0,0,0]
    [4,4] --------------------------------------------> [6,4,6,4,6,4,0,0] ( this period, add the average of 2 continuous elements in new array )
    [6,6] --------------------------------------------> [6,4,6,4,6,4,6,0]
    [4,4] --------------------------------------------> [6,4,6,4,6,4,6,4]
    [6,4,6,4,6,4,6,4] ( 2 nd period)
    ----------> 2nd collapse [5,5,5,5,0,0,0,0] ( take the average of 2 continous element add to new result data array)
    Next input data
    [6,6] ....wait until input data has 4 elements
    [4,4] -------------------------------------------------------------------------------------> [5,5,5,5,5,0,0,0]
    [6,6] ....wait until input data has 4 elements
    [4,4] -------------------------------------------------------------------------------------> [5,5,5,5,5,5,0,0]
    [6,6] ....wait until input data has 4 elements
    [4,4] -------------------------------------------------------------------------------------> [5,5,5,5,5,5,5,0]
    [6,6] ....wait until input data has 4 elements
    [4,4] -------------------------------------------------------------------------------------> [5,5,5,5,5,5,5,5]
    [5,5,5,5,5,5,5,5] ( third period )
    ----------> 3rd collapse [5,5,5,5,0,0,0,0]
    This wayl to make the tren graph.I  made  an VI to do that , but it's not yet correct.
    Attachments:
    tryyyyyyy.vi ‏39 KB
    trend_mode.JPG ‏49 KB

    Frankly, I don't understand your problem description or your VI.
    In the description, the output array has a fixed size of 8 elements, is this correct? In this case you should initialize an array of 8 elements and do all operations "in place". I don't udnerstand the purpose of all the other code.
    There are a lof of things that don't make any sense at all.
    The second largest loop has no purpose, because it iterates only once per call
    Sometimes you are concatenating an empty array to an existing array. This makes no difference.
    Why is some of your data EXT representation???
    What's up with complicated constructs such as that small loop shown in the picture. I show a somewhat simpler alternative.
    Anyway, I have a hard time understanding your description. What should happen at the end? Do you have a link to a website that describes the algorithm? Does the algorithm have a name?
    Message Edited by altenbach on 01-10-2008 09:55 AM
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    Simplify.png ‏5 KB

  • In the attached vi, I have a 2-dim series of EMGs which I would like to connect with a 1-dim array. How can I do this?

    In the attached vi, de Y values are given for each time as a matrix. The problem is that the y values coming out have to be a 1-dim array, in order to connect this vi with another vi. How can I do this?
    Attachments:
    3-dim_Filter.vi ‏48 KB

    Hi,
    can you post your curve fitting .vi?
    I think you can do this with the reshape array.vi, and take the 2-D array, find out it's size, and multiply the two dimensions together to get the number of elements you need. That'll give you the array as 1-D, but whether it's in the correct order as you need it is another matter.
    It all depends on what the 2-D array is representing, and how much of it needs to go to the "other" .vi
    Hope that helps
    S.
    // it takes almost no time to rate an answer

  • How  could i get my array to do this?

    how could i get my array to print out in this format
    1 A B C D
    2 A B C D
    3 A B C D
    4 A B C D
    5 A B C D
    6 A B C D
    7 A B C D
    i tried this in a small function
    public void showArray()
            char[][] temp= new char[7][4];
            for (int i=0; i<array.length;i++)
                for(int j=0;j< array.length; j++)
    temp[i][j]=array[i][j];
    System.out.println( temp[i][j]);

    public static void printArray(char[][] array)
       for (int i=0; i<array.length; i++)
          System.out.print(i +1 + " "); //print the row number + 1, then a space
          for (int j=0; j<array.length; j++)
    System.out.print(array[i][j] + " "); //print the value at row i and column j, then a space
    System.out.println(); //print a new line
    }Edited by: chickenmeister on Nov 11, 2008 9:47 AM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • How to hide objects in this array

    hi so i want to hide these object in this array
            var rdCounts:Array = [2,4 ,58 ,3,7,8 9]
            var NewPassenger:Array= new Array();
    im spawning movie clips to the numbers u see in rdCount, and i an using push to put then on NewPassenge i was wondering how can i make them all invisible uing .visible = false;
    thanks,
    hen

    What are those values in the rdCounts supposed to be doing for you?  5516/1000 = 5.516....  so...
    var theAmount:int = rdCounts[timeline_slider.value];
    doesn't make much sense, especially since most of the array values will result in the same int value of 5.
    One thing you have said, at leasnce... "i have a ratio buttion called original_rb everytime it is selected all the movieclips that is spawning from the code up there i want to be invisible, becuase i have a nother graph set to become visible when original_rb is selected.
    But the function you showed is not being called for clicking the original_rb, it is being called for clicking le_rb.  So maybe that's what you are missing... targeting the wrong rb for clicking.
    I am not intending this as an insult, but I think you might have homed in on the main problem when you said...
    "ive had alot of hep with this so it might not make sense"
    If you don't know if it makes sense and you don't understand it then you probably need to spend more time trying to.  If someone else did what you are showing for you, they might need some more experience as well.
    Radio buttons are usually used as a group, where one of the group is selected.  You seem to be using radio buttons where checkboxes or buttons would be more appropriate.
    The code that has answered you questions so far would work if your design supports it.  So chances are you design isn't what your code is aimed at... though I would expect error messages in that case.
    There have been quite a few questions asked that have not been answered yet.  Probably the most meaningful of them is whether or not you are getting error messages. If you are, including the entire error message(s) in your posting is key to getting help.

  • How can i get a array from a JSP ?

    Hi all,
    i have a STORED PROCEDURE like this:
    static public void getMyArray(double [] xx) {
    for (int i=0; i<myarr.length;i++){
    myarr=3.145*i;
    xx=myarr;
    return ;
    how can i get the array with XSQL and transform with a XSL ?
    Is this at all possible?
    Thanks for any help.
    Achim

    u r asking how ca u get array from jsp?
    and u r asking xsql ...some stuff i couldnot understand .can u repeat the question properly?
    null

  • How can I convert an array off byte into an Object ?

    Hi folks...
    I�m developing an application that comunicates a PDA and a computer via Wi-Fi. I�m using a DataStream ( Input and Output ) to receive / send information from / to the computer. Most off the data received from him is in the byte[] type...
    How can I convert an array off byte ( byte[] ) into an Object using MIDP 2.0 / CLDC 1.1 ?
    I found on the web 2 functions that made this... but it uses a ObjectOutputStream and ObjectInputStream classes that is not provided by the J2ME plataform...
    How can I do this ?
    Waiting answers
    Rodrigo Kerkhoff

    There are no ObjectOutputStream and ObjectInputStream classes in CLDC. You must know what you are writing to and reading from the DataStream. You should write the primitives like int, String to the DataOutputstream at one end and read those in exactly the same sequence at the outher end using readInt(), readUTF() methods.

  • How do you create an array without using a shell on the FP?

    I want to be able to read the status of front panel controls (value, control box selection, etc.) and save it to a file, as a "configuration" file -- then be able to load it and have all the controls set to the same states as were saved in the file. I was thinking an array would be a way to do this, as I have done that in VB. (Saving it as a text file, then reading lines back into the array when the file is read and point the control(s) values/states to the corresponding array element.
    So how do I create an array of X dimensions without using a shell on the front panel? Or can someone suggest a better way to accomplish what I am after? (Datalogging doesn't allow for saving the status by a filename, so I
    do not want to go that route.)

    Thanks so much m3nth! This definitely looks like what I was wanting... just not really knowing how to get there.
    I'm not sure I follow all the icons. Is that an array (top left with 0 constant) in the top example? And if so, that gets back to part of my original question of how to create an array without using a shell on the FP. Do I follow your diagram correctly?
    If I seem a tad green... well I am.
    I hope you understand the LabVIEW environment and icons are still very new to me.
    Also, I had a response from an NI app. engineer about this problem. He sent me a couple of VI's that he threw together approaching this by using Keys. (I still think you are pointing to the best solution.) I assume he wouldn't mind m
    e posting his reply and the VI's for the sake of a good, thorough, Roundtable discussion. So here are his comments with VI's attached:
    "I was implementing this exact functionality this morning for an application I'm working on. I only have five controls I want to save, but they are all of different data types. I simply wrote a key for each control, and read back that key on initialization. I simply passed in property node values to the save VI at the end, and passed the values out to property nodes at
    the beginning. I've attached my initialize and save VI's for you to view. If you have so many controls that this would not be feasible, you may want to look into clustering the controls and saving the cluster as a datalog file.
    Attachments:
    Initialize_Settings.vi ‏55 KB
    Save_Settings.vi ‏52 KB

  • How do I pass an array of structs to a C function using the dll flexible prototype adapter?

    What I want to do is pass into a C dll function a variably sized Array of structs of type TPS_Data. My Code compiles but when I run it in TestStand, I get an error -17001; Program Error. "Cannot allocate 0 size buffer Error in parameter 2, 'OpenFrdData'."
    I've allocated the Array of structs, and all of the information is there before I call my function, so is it my prototype? Or am I asking too much of the DLL Flexible Prototype Adapter to pass an Array of Structs?
    I can pass in a single struct of type TPS_Data and that works, but not an array.
    Here's the relevent code:
    typedef struct TPS_DATA
    char Report_Number[256];
    char System_Name[256];
    char Open_Date[256];
    char UUT_Part_Number[256];
    char UUT_Serial_Number[256];
    char UUT_Name[256];
    char Open_Employee_Name[256];
    char Open_Employee_Number[256];
    char Close_Employee_Name[256];
    char Close_Employee_Number[256];
    char Close_Date[256];
    } TPS_Data;
    typedef struct TPS_DATA_ARRAY
    TPS_Data DataRecord;
    } TPS_DataArray;
    long __declspec(dllexport) __stdcall OpenDialog (CAObjHandle Context, TPS_DataArray *TpsData[], const char *psFaultStr, char *sComments, const int nCount);

    OK,
    I can pass the data to the DLL function, using the following types:
    typedef struct StringArrayType
    char string[10][256];
    } StringArray;
    typedef struct MultiStringArrayType
    StringArray Record[10];
    } MultiStringArray;
    void __declspec(dllexport) __stdcall ATP_TestStructPassing(StringArray Strings)
    return;
    void __declspec(dllexport) __stdcall ATP_TestMultiStructPassing(MultiStringArray *Strings)
    return;
    But when the MultiStruct function Exits, TestStand reports an Error:
    -17501 "Unexpected Operating System Error" Source: 'TSAPI'
    There doesn't seem to be a way around this, and once the error occurs, I have to force quit TestStand. I've included the sequence file, and the dll code can be compiled from the fun
    ctions shown above.
    Any thoughts on how to get around this error would be greatly appreciated.
    Attachments:
    StructArrayPassing.seq ‏16 KB

  • How can I use my array in another method.... Or better yet, what's wrong?

    I guess I'll show you what I am trying to do rather and then explain it
    public class arraycalc
    int[] dog;
    public void arraycalc()
    dog = new int[2];
    public void setSize(int size)
    dog[1] = size;
    public int getSize()
    return dog[1];
    This gives me a null pointer exception...
    How can I use my array from other methods?

    You have to make the array static. :)
    Although I must admit, this is rather bad usage. What you want to do is use an object constructor to make this class an object type, and then create the array in your main class using this type, and then call the methods from this class to modify your array. Creating the array inside the other method leads to a whole bunch of other stuff that's ... well, bad. :)
    Another thing: Because you're creating your array inside this class and you want to call your array from another class, you need to make the array static; to make it static, you must make your methods static. And according to my most ingenious computer science teacher, STATIC METHODS SUCK. :D
    So, if you want to stick with your layout, it would look like:
    public class arraycalc
         static int[] dog;
         public static void arraycalc()
              dog = new int[2];
         public static void setSize(int size)
              dog[1] = size;
         public static int getSize()
              return dog[1];
    }But I must warn you, that is absolutely horrible code, and you shouldn't use it. In fact, I don't even know why I posted it.
    You should definitely read up on OOP, as this problem would be better solved by creating a new object type.

Maybe you are looking for

  • Error authenticating proxy while running agent job

    I am trying to schedule a SSIS2014 package via SQL Server Agent job. Both SSIS and SSMS are running on my local machine in the same domain. I am running SSMS with the same user Domain\Admin which is the creator of the SSIS package. SSMS 32-Bit and SS

  • Drop down Values in Adobe form

    Dear All,      Greetings.      I am using the Adobe interactive form for E Recruitement(copying the standard and changing it as per the requirement). When i am using the Drop down value for one of the field. Instead of the drop down its showing as a

  • Help for raw files

    How do I make Canon 5D MarkIII compatable with Lightroom 3 and cs5 (raw files)

  • Developer Toolbox - Integrate (ASP) CAPTCHA

    Hi there, I would like to know how to integrate (ASP) CAPTCHA into forms created using the developer toolbox. I use webwiz CAPTCHA and this works well, but the processing page must be different from the form page. The toolbox generated forms look pre

  • IBooks Unable to Read book read previously

    I purchased book which was working properly and I was reading it.  Suddenly unable to read it. Othr books work fine.  I deleted the book and downloaded it  second time and it still will nor open. When I click on the book it closes Ibooks.  Any ideas