473,324 Members | 2,179 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

Filling object Array / retrieving the data (help)

I am trying to build this application and I keep getting a null pointer exception. however the data seems to be there. Can anyone take a look and give me a hand?
Expand|Select|Wrap|Line Numbers
  1. /*
  2.  * To change this template, choose Tools | Templates
  3.  * and open the template in the editor.
  4.  */
  5.  
  6. package stock;
  7.  
  8. import java.awt.Color;
  9. import java.awt.Container;
  10. import java.awt.event.ActionEvent;
  11. import java.awt.event.ActionListener;
  12. import javax.swing.JButton;
  13. import javax.swing.JFrame;
  14. import javax.swing.JLabel;
  15. import javax.swing.JTextField;
  16.  
  17. //iricongi
  18. public class PortfolioManager extends JFrame implements ActionListener {
  19.  
  20.     private int FRAME_WIDTH = 500;
  21.     private int FRAME_HEIGHT = 500;
  22.     private JLabel tickerLabel, companyLabel, stockHighLabel, stockLowLabel, numberLabel, maximumStocksEntered, searchStockLabel;
  23.     private JTextField tickerField, companyField, stockHighField, stockLowField, numberField, searchStockField;
  24.     private JButton clear, next, quit, enter, search;
  25.     private int numberOfStocks;
  26.     private String nos;
  27.     private String EMPTY_STRING = "";  
  28.     private Container contentPane;
  29.  //private stock s;
  30.     private int stockCount = 0;
  31.     public int i = 0;
  32.  
  33.  
  34.  
  35.  
  36.     public static void main ( String [] args)
  37.     {
  38.         PortfolioManager frame = new PortfolioManager();
  39.         frame.setVisible(true);
  40.         //buildPane();
  41.  
  42.         //stock stockArray[];
  43.         //stockArray = new stock[5];
  44.  
  45.  
  46.  
  47.     }
  48.  
  49.     public PortfolioManager()
  50.     {
  51.  
  52.         contentPane = getContentPane();
  53.         contentPane.setLayout(null);
  54.         contentPane.setBackground(Color.GRAY);
  55.         setSize(FRAME_WIDTH, FRAME_HEIGHT);
  56.         setTitle("The Stocker");
  57.  
  58.  
  59.         tickerLabel = new JLabel("Ticker Symbol");
  60.         tickerField = new JTextField();
  61.         companyLabel = new JLabel("Company Name");
  62.         companyField = new JTextField();
  63.         stockHighLabel = new JLabel("Stock High");
  64.         stockHighField = new JTextField();
  65.         stockLowLabel = new JLabel("Stock Low");
  66.         stockLowField = new JTextField();
  67.         numberLabel = new JLabel("Number of Stocks");
  68.         numberField = new JTextField();
  69.         maximumStocksEntered = new JLabel("You have entered the maximum number of stocks.");
  70.         searchStockField = new JTextField();
  71.         clear = new JButton("Clear");
  72.         next = new JButton("Next");
  73.         quit = new JButton("Quit");
  74.         enter = new JButton("Enter");
  75.         search = new JButton("Search");
  76.  
  77.         tickerLabel.setBounds(85, 20, 150, 25);
  78.         tickerField.setBounds(240, 20, 150, 25);
  79.         companyLabel.setBounds(85, 45, 150, 25);
  80.         companyField.setBounds(240, 45, 150, 25);
  81.         stockHighLabel.setBounds(85, 70, 150, 25);
  82.         stockHighField.setBounds(240, 70, 150, 25);
  83.         stockLowLabel.setBounds(85, 95, 150, 25);
  84.         stockLowField.setBounds(240, 95, 150, 25);
  85.         numberLabel.setBounds(85, 120, 150, 25);
  86.         numberField.setBounds(240, 120, 150, 25);
  87.         maximumStocksEntered.setBounds(85, 20, 200, 25);
  88.         searchStockField.setBounds(240,20,150,25);
  89.         search.setBounds(265, 20, 80, 20);
  90.         clear.setBounds(85, 145, 80, 20);
  91.         next.setBounds(160, 145, 80, 20);
  92.         quit.setBounds(240, 145, 80, 20);
  93.         enter.setBounds(320, 145, 80, 20);
  94.  
  95.         clear.addActionListener(this);
  96.         next.addActionListener(this);
  97.         quit.addActionListener(this);
  98.         enter.addActionListener(this);
  99.         search.addActionListener(this);
  100.  
  101.  
  102.         totalStocks();    
  103.  
  104.     }
  105.  
  106.     public void totalStocks()
  107.     {
  108.         contentPane.add(numberLabel);
  109.         contentPane.add(numberField);
  110.         contentPane.add(enter);
  111.         numberField.addActionListener(this);
  112.         //numberOfStocks = numberField.Integer.parseInt(numberField);
  113.     }
  114.  
  115.     public void searchButton ()
  116.     {
  117.         contentPane.remove(numberLabel);
  118.         contentPane.remove(numberField);
  119.         contentPane.remove(enter);
  120.         contentPane.remove(tickerLabel);
  121.         contentPane.remove(companyLabel);
  122.         contentPane.remove(companyField);
  123.         contentPane.remove(tickerField);
  124.         contentPane.remove(stockHighLabel);
  125.         contentPane.remove(stockHighField);
  126.         contentPane.remove(stockLowLabel);
  127.         contentPane.remove(stockLowField);
  128.         contentPane.remove(clear);
  129.         contentPane.remove(next);
  130.         contentPane.remove(quit);
  131.         contentPane.add(searchStockField);
  132.         contentPane.add(search);
  133.         search.addActionListener(this);
  134.     }
  135.  
  136.     public void seachContents(String tickerS)
  137.     {
  138.  
  139.     }
  140.     public void stockCharacters()
  141.     {
  142.         contentPane.remove(numberLabel);
  143.         contentPane.remove(numberField);
  144.         contentPane.remove(enter);
  145.         contentPane.add(tickerLabel);
  146.         contentPane.add(companyLabel);
  147.         contentPane.add(companyField);
  148.         contentPane.add(tickerField);
  149.         contentPane.add(stockHighLabel);
  150.         contentPane.add(stockHighField);
  151.         contentPane.add(stockLowLabel);
  152.         contentPane.add(stockLowField);
  153.         contentPane.add(clear);
  154.         contentPane.add(next);
  155.         contentPane.add(quit);
  156.         tickerField.addActionListener(this);
  157.         companyField.addActionListener(this);
  158.         stockHighField.addActionListener(this);
  159.         stockLowField.addActionListener(this);
  160.  
  161.  
  162.     }
  163.  
  164.     public void clearInformation()
  165.     {
  166.                 tickerField.setText(EMPTY_STRING);
  167.                 companyField.setText(EMPTY_STRING);
  168.                 stockHighField.setText(EMPTY_STRING);
  169.                 stockLowField.setText(EMPTY_STRING);
  170.     }
  171.  
  172.     public void fillStockArray(int x){
  173.                 String tf = tickerField.getText();
  174.                 String cn = companyField.getText();
  175.                 String shf = stockHighField.getText();
  176.                 String lhf = stockLowField.getText();
  177.                 double high = Double.parseDouble(shf);
  178.                 double low = Double.parseDouble(lhf);
  179.  
  180.                 System.out.println("tickerField = " + tf);
  181.                 System.out.println("companyField = " + cn);
  182.                 System.out.println("high = " + high);
  183.                 System.out.println("low = " + low );
  184.  
  185.  
  186.                stock[] stockArray = new stock[1];
  187.                     //stockArray[x] = new stock();
  188.                     stockArray[0].setHigh(high);
  189.                     stockArray[0].setLow(low);
  190.                     stockArray[0].setName(cn);
  191.                     stockArray[0].setTickerSymbol(tf);
  192.  
  193.  
  194.                     double gHigh, gLow;
  195.                     String gName, gTicker;
  196.                     gHigh = stockArray[x].getHigh();
  197.                     gLow = stockArray[x].getLow();
  198.                     gName = stockArray[x].getName();
  199.                     gTicker = stockArray[x].getTickerSymbol();
  200.  
  201.                     //i = i + 1;               
  202.                 System.out.println("array count = "+ i);
  203.                 System.out.println("gHigh = " + gHigh );
  204.                  System.out.println("gLow = " + gLow );
  205.                  System.out.println("gName = " + gName );
  206.                  System.out.println("gTicker = " + gTicker );
  207.  
  208.  
  209.  
  210.                  clearInformation();
  211.     }
  212.  
  213.     public void actionPerformed(ActionEvent e) {
  214.  
  215.         if(e.getSource() instanceof JButton)
  216.         {
  217.         JButton clickedButton = (JButton) e.getSource();
  218.             if(clickedButton == clear)
  219.             {
  220.                 // call to clear text function
  221.                 clearInformation();
  222.             }
  223.  
  224.             if(clickedButton == next)
  225.             {
  226.                 // call to function that adds objects to array  
  227.                 //clearInformation();
  228.  
  229.                 //for(int i=0; i < numberOfStocks; i++)
  230.                 //{
  231.  
  232.                 fillStockArray(numberOfStocks);
  233.  
  234.  
  235.  
  236.                  //clearInformation();
  237.  
  238.  
  239.  
  240.             } 
  241.  
  242.             if(clickedButton == quit)
  243.             {
  244.                 System.exit(0);
  245.             }
  246.  
  247.             if(clickedButton == enter)
  248.             {
  249.                 //save number of stocks
  250.                 nos = numberField.getText();
  251.                 System.out.println("nos == " + nos);
  252.                 numberOfStocks = Integer.parseInt(nos);
  253.                 System.out.println("Number of Stocks integer = " + numberOfStocks);
  254.                 stockCharacters();
  255.             }
  256.  
  257.            if(clickedButton == search)
  258.            {
  259.  
  260.            }
  261.         }
  262.  
  263.     }
  264. }
  265.  
  266.  
  267. package stock;
  268.  
  269. public class stock {
  270.     /*
  271.      *   Instance variables
  272.      */
  273.      private double high, low;
  274.      private String tickerSymbol, name;
  275.  
  276.  
  277.     /*
  278.      * instance methods
  279.      */
  280.  
  281.     public double getHigh()
  282.     {
  283.         return high;
  284.     }
  285.  
  286.     public double getLow()
  287.     {
  288.         return low;
  289.     }
  290.  
  291.     public String getTickerSymbol()
  292.     {
  293.         return tickerSymbol;
  294.     }
  295.  
  296.     public String getName()
  297.     {
  298.         return name;
  299.     }
  300.  
  301.       public void setHigh(double x)
  302.     {
  303.         high = x;
  304.     }
  305.  
  306.     public void setLow(double y)
  307.     {
  308.         low = y;
  309.     }
  310.  
  311.     public void setTickerSymbol(String ts)
  312.     {
  313.         tickerSymbol = ts;
  314.  
  315.     }
  316.  
  317.     public void setName(String cn)
  318.     {
  319.         name = cn;
  320.  
  321.     }  
  322. }
Sep 1 '08 #1
4 1391
JosAH
11,448 Expert 8TB
A NullPointerException can only happen during runtime. The JVM not just tells
you that the exception had happened, it also tells you the line number and the
statement that caused the exception to happen. It even tells you which method
called the last method in which the exception happened etc.

Please don't make us guess and show us that information verbatim. Help us to
help you.

kind regards,

Jos
Sep 1 '08 #2
Sorry about that. I thought of that shortly after posting. The errors and line numbers are as follows. The first two I think are the important ones.

run:
nos == 1
Number of Stocks integer = 1
tickerField = ts
companyField = cs
high = 35.0
low = 25.0
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
at stock.PortfolioManager.fillStockArray(PortfolioMan ager.java:188)
at stock.PortfolioManager.actionPerformed(PortfolioMa nager.java:232)

at javax.swing.AbstractButton.fireActionPerformed(Abs tractButton.java:1995)
at javax.swing.AbstractButton$Handler.actionPerformed (AbstractButton.java:2318)
at javax.swing.DefaultButtonModel.fireActionPerformed (DefaultButtonModel.java:387)
at javax.swing.DefaultButtonModel.setPressed(DefaultB uttonModel.java:242)
at javax.swing.plaf.basic.BasicButtonListener.mouseRe leased(BasicButtonListener.java:236)
at java.awt.Component.processMouseEvent(Component.jav a:6041)
at javax.swing.JComponent.processMouseEvent(JComponen t.java:3265)
at java.awt.Component.processEvent(Component.java:580 6)
at java.awt.Container.processEvent(Container.java:205 8)
at java.awt.Component.dispatchEventImpl(Component.jav a:4413)
at java.awt.Container.dispatchEventImpl(Container.jav a:2116)
at java.awt.Component.dispatchEvent(Component.java:42 43)
at java.awt.LightweightDispatcher.retargetMouseEvent( Container.java:4322)
at java.awt.LightweightDispatcher.processMouseEvent(C ontainer.java:3986)
at java.awt.LightweightDispatcher.dispatchEvent(Conta iner.java:3916)
at java.awt.Container.dispatchEventImpl(Container.jav a:2102)
at java.awt.Window.dispatchEventImpl(Window.java:2440 )
at java.awt.Component.dispatchEvent(Component.java:42 43)
at java.awt.EventQueue.dispatchEvent(EventQueue.java: 599)
at java.awt.EventDispatchThread.pumpOneEventForFilter s(EventDispatchThread.java:273)
at java.awt.EventDispatchThread.pumpEventsForFilter(E ventDispatchThread.java:183)
at java.awt.EventDispatchThread.pumpEventsForHierarch y(EventDispatchThread.java:173)
at java.awt.EventDispatchThread.pumpEvents(EventDispa tchThread.java:168)
at java.awt.EventDispatchThread.pumpEvents(EventDispa tchThread.java:160)
at java.awt.EventDispatchThread.run(EventDispatchThre ad.java:121)
Sep 1 '08 #3
JosAH
11,448 Expert 8TB
Well, in line #186 you create an array of a single stock object; the elements of the
array *can* refer to stock objects but they don't do that yet (the reference is still
null). In line #188 you just assume that it *is* pointing (refering) to such an object
and *bang* there you've got your NullPointerException.

kind regards,

Jos
Sep 1 '08 #4
Well, in line #186 you create an array of a single stock object; the elements of the
array *can* refer to stock objects but they don't do that yet (the reference is still
null). In line #188 you just assume that it *is* pointing (refering) to such an object
and *bang* there you've got your NullPointerException.

kind regards,

Jos
Thanks, it works now. I still have quite a bit of work to do on it. But that part is functioning. The new code is listed below.
Expand|Select|Wrap|Line Numbers
  1. /*
  2.  * To change this template, choose Tools | Templates
  3.  * and open the template in the editor.
  4.  */
  5.  
  6. package stock;
  7.  
  8. import java.awt.Color;
  9. import java.awt.Container;
  10. import java.awt.event.ActionEvent;
  11. import java.awt.event.ActionListener;
  12. import javax.swing.JButton;
  13. import javax.swing.JFrame;
  14. import javax.swing.JLabel;
  15. import javax.swing.JTextField;
  16.  
  17. //iricongi
  18. public class PortfolioManager extends JFrame implements ActionListener {
  19.  
  20.     private int FRAME_WIDTH = 500;
  21.     private int FRAME_HEIGHT = 500;
  22.     private JLabel tickerLabel, companyLabel, stockHighLabel, stockLowLabel, numberLabel, maximumStocksEntered, searchStockLabel;
  23.     private JTextField tickerField, companyField, stockHighField, stockLowField, numberField, searchStockField;
  24.     private JButton clear, next, quit, enter, search;
  25.     private int numberOfStocks;
  26.     private String nos;
  27.     private String EMPTY_STRING = "";  
  28.     private Container contentPane;
  29.     private int stockCount = 0;
  30.     stock [] stockArray;
  31.  
  32.  
  33.  
  34.  
  35.     public static void main ( String [] args)
  36.     {
  37.         PortfolioManager frame = new PortfolioManager();
  38.         frame.setVisible(true);
  39.  
  40.     }
  41.  
  42.     public PortfolioManager()
  43.     {
  44.  
  45.         contentPane = getContentPane();
  46.         contentPane.setLayout(null);
  47.         contentPane.setBackground(Color.GRAY);
  48.         setSize(FRAME_WIDTH, FRAME_HEIGHT);
  49.         setTitle("The Stocker");
  50.  
  51.  
  52.         tickerLabel = new JLabel("Ticker Symbol");
  53.         tickerField = new JTextField();
  54.         companyLabel = new JLabel("Company Name");
  55.         companyField = new JTextField();
  56.         stockHighLabel = new JLabel("Stock High");
  57.         stockHighField = new JTextField();
  58.         stockLowLabel = new JLabel("Stock Low");
  59.         stockLowField = new JTextField();
  60.         numberLabel = new JLabel("Number of Stocks");
  61.         numberField = new JTextField();
  62.         maximumStocksEntered = new JLabel("You have entered the maximum number of stocks.");
  63.         searchStockField = new JTextField();
  64.         clear = new JButton("Clear");
  65.         next = new JButton("Next");
  66.         quit = new JButton("Quit");
  67.         enter = new JButton("Enter");
  68.         search = new JButton("Search");
  69.  
  70.         tickerLabel.setBounds(85, 20, 150, 25);
  71.         tickerField.setBounds(240, 20, 150, 25);
  72.         companyLabel.setBounds(85, 45, 150, 25);
  73.         companyField.setBounds(240, 45, 150, 25);
  74.         stockHighLabel.setBounds(85, 70, 150, 25);
  75.         stockHighField.setBounds(240, 70, 150, 25);
  76.         stockLowLabel.setBounds(85, 95, 150, 25);
  77.         stockLowField.setBounds(240, 95, 150, 25);
  78.         numberLabel.setBounds(85, 120, 150, 25);
  79.         numberField.setBounds(240, 120, 150, 25);
  80.         maximumStocksEntered.setBounds(85, 20, 200, 25);
  81.         searchStockField.setBounds(240,20,150,25);
  82.         search.setBounds(265, 20, 80, 20);
  83.         clear.setBounds(85, 145, 80, 20);
  84.         next.setBounds(160, 145, 80, 20);
  85.         quit.setBounds(240, 145, 80, 20);
  86.         enter.setBounds(320, 145, 80, 20);
  87.  
  88.         clear.addActionListener(this);
  89.         next.addActionListener(this);
  90.         quit.addActionListener(this);
  91.         enter.addActionListener(this);
  92.         search.addActionListener(this);
  93.  
  94.  
  95.         totalStocks();    
  96.  
  97.     }
  98.  
  99.     public void totalStocks()
  100.     {
  101.         contentPane.add(numberLabel);
  102.         contentPane.add(numberField);
  103.         contentPane.add(enter);
  104.         numberField.addActionListener(this);
  105.         //numberOfStocks = numberField.Integer.parseInt(numberField);
  106.     }
  107.  
  108.     public void searchButton ()
  109.     {
  110.         contentPane.remove(numberLabel);
  111.         contentPane.remove(numberField);
  112.         contentPane.remove(enter);
  113.         contentPane.remove(tickerLabel);
  114.         contentPane.remove(companyLabel);
  115.         contentPane.remove(companyField);
  116.         contentPane.remove(tickerField);
  117.         contentPane.remove(stockHighLabel);
  118.         contentPane.remove(stockHighField);
  119.         contentPane.remove(stockLowLabel);
  120.         contentPane.remove(stockLowField);
  121.         contentPane.remove(clear);
  122.         contentPane.remove(next);
  123.         contentPane.remove(quit);
  124.         contentPane.add(searchStockField);
  125.         contentPane.add(search);
  126.         search.addActionListener(this);
  127.     }
  128.  
  129.     public void seachContents(String tickerS)
  130.     {
  131.  
  132.     }
  133.     public void stockCharacters()
  134.     {
  135.         contentPane.remove(numberLabel);
  136.         contentPane.remove(numberField);
  137.         contentPane.remove(enter);
  138.         contentPane.add(tickerLabel);
  139.         contentPane.add(companyLabel);
  140.         contentPane.add(companyField);
  141.         contentPane.add(tickerField);
  142.         contentPane.add(stockHighLabel);
  143.         contentPane.add(stockHighField);
  144.         contentPane.add(stockLowLabel);
  145.         contentPane.add(stockLowField);
  146.         contentPane.add(clear);
  147.         contentPane.add(next);
  148.         contentPane.add(quit);
  149.         tickerField.addActionListener(this);
  150.         companyField.addActionListener(this);
  151.         stockHighField.addActionListener(this);
  152.         stockLowField.addActionListener(this);
  153.  
  154.  
  155.     }
  156.  
  157.     public void clearInformation()
  158.     {
  159.                 tickerField.setText(EMPTY_STRING);
  160.                 companyField.setText(EMPTY_STRING);
  161.                 stockHighField.setText(EMPTY_STRING);
  162.                 stockLowField.setText(EMPTY_STRING);
  163.     }
  164.  
  165.     public void setStockArraySize(int x)
  166.     {
  167.         stockArray = new stock[x];
  168.     }
  169.  
  170.     public void fillStockArray(){
  171.                 String tf = tickerField.getText();
  172.                 String cn = companyField.getText();
  173.                 String shf = stockHighField.getText();
  174.                 String lhf = stockLowField.getText();
  175.                 double high = Double.parseDouble(shf);
  176.                 double low = Double.parseDouble(lhf);
  177.  
  178.                 System.out.println("tickerField = " + tf);
  179.                 System.out.println("companyField = " + cn);
  180.                 System.out.println("high = " + high);
  181.                 System.out.println("low = " + low );
  182.  
  183.                     stockArray[stockCount] = new stock();
  184.                     stockArray[stockCount].setHigh(high);
  185.                     stockArray[stockCount].setLow(low);
  186.                     stockArray[stockCount].setName(cn);
  187.                     stockArray[stockCount].setTickerSymbol(tf);
  188.  
  189.  
  190.                     double gHigh, gLow;
  191.                     String gName, gTicker;
  192.                     gHigh = stockArray[stockCount].getHigh();
  193.                     gLow = stockArray[stockCount].getLow();
  194.                     gName = stockArray[stockCount].getName();
  195.                     gTicker = stockArray[stockCount].getTickerSymbol();
  196.  
  197.                     stockCount++;
  198.  
  199.                  System.out.println("array count = "+ stockCount);
  200.                  System.out.println("gHigh = " + gHigh );
  201.                  System.out.println("gLow = " + gLow );
  202.                  System.out.println("gName = " + gName );
  203.                  System.out.println("gTicker = " + gTicker );
  204.  
  205.  
  206.  
  207.                  clearInformation();
  208.     }
  209.  
  210.     public void actionPerformed(ActionEvent e) {
  211.  
  212.         if(e.getSource() instanceof JButton)
  213.         {
  214.         JButton clickedButton = (JButton) e.getSource();
  215.             if(clickedButton == clear)
  216.             {
  217.                 // call to clear text function
  218.                 clearInformation();
  219.             }
  220.  
  221.             if(clickedButton == next)
  222.             {
  223.                 // call to function that adds objects to array  
  224.                 fillStockArray();  
  225.  
  226.             } 
  227.  
  228.             if(clickedButton == quit)
  229.             {
  230.                 System.exit(0);
  231.             }
  232.  
  233.             if(clickedButton == enter)
  234.             {
  235.                 //save number of stocks
  236.                 nos = numberField.getText();
  237.                 System.out.println("nos == " + nos);
  238.                 numberOfStocks = Integer.parseInt(nos);
  239.                 System.out.println("Number of Stocks integer = " + numberOfStocks);
  240.                 setStockArraySize(numberOfStocks - 1);
  241.                 stockCharacters();
  242.             }
  243.  
  244.            if(clickedButton == search)
  245.            {
  246.  
  247.            }
  248.         }
  249.  
  250.     }
  251. }
*MODERATOR* This is the second time I've added [code] tags to your posts in this thread. Please use them yourself next time!
Sep 1 '08 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: John Bullock | last post by:
Hello, I am at wit's end with an array sorting problem. I have a simple table-sorting function which must, at times, sort on columns that include entries with nothing but a space (@nbsp;). I...
2
by: ramesh | last post by:
hi, I am using Com+ in my application. It will have InsertRecords,selectRecords,updateRecords function. In the Web Form i have Drop-down list. I want to select records from SQL and add it to this...
4
by: Scott Lundstrom | last post by:
I have a large amount of data I'm dropping into a dataset and would like to find a way to at the very least show the user that the program is working at retrieving the data and not locked up. I...
3
by: crjunk | last post by:
I have a 3 table in my DataSet that I'm filling with data. After I've filled these 3 tables, I'm then trying to run a query that will fill a 4th table in the DataSet with data from the three...
9
by: Ben | last post by:
Hello, I'm not a developper, so sorry if it's a stupid question... I'm trying to develop an application in vb.net and I have the following problem: I have some information in an array:...
5
by: Diffident | last post by:
Hello All, I have a 2-dimensional array that I am storing as a session variable. I have no idea on how I can cast the session variable back to 2-dimensional array. Any pointers? Reference...
0
by: Derek Vincent | last post by:
Why am I having problems filling my dataset when I select fields of type varchar(350) from interbase? I can fill the dataset when I select every other field in the table but I receive and error...
3
by: Jayman777 | last post by:
Hello, I am using PHP 4.4.1 and am having problems retrieving an object from an array of objects and then calling a method on it. Here are two simple classes that I am using: class Day...
5
by: markr1000 | last post by:
I must have looked searched in 500+ places that showed up in Google searchs, but not one has an example of what I want to do. I have a Listbox on a User Control because I want to control the...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.