Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. ewan91

    applets displaying info

    hello i'm developing an applet for a basic currency converter but it won't display the result at the moment this is the button cathcher class, it should set the testReturn TextField with the converted figure (double the inputted figure at the moment) anyone know what is wrong with it? class...
  2. ewan91

    new to javascript

    hi i'm just learning JavaScript and have a couple of questions if anyone could help 1. is there any rules as to when you should include javascript in between <HEAD></HEAD> and when in between the <BODY></BODY> tags 2.i've written an applet and when trying to get it to work the page runs but...
  3. ewan91

    accessing vectors

    hi there i'm storing ints in a vector and want to be able to work out the average of the int values the functions below should do it but i am only getting the last value returned not the average of all of them can anyone see where i'm going wrong public void averageSwing ( ) { int...
  4. ewan91

    multi-dimensional arrays

    hi i have this code which i think will access a multi-dimensional array, however it comes out with -85763640!! it is the main function #include <iostream.h> #include &quot;lookUp.h&quot; void main( ) { lookUp look; cout << &quot;hello world&quot; << endl; cout << look.labSeats( 3 ) <<...
  5. ewan91

    layoutManager and painting

    hi i want to use a card layout in my appication, using this or any layoutManager can i paint directly to the screen or do i have to paint onto a component such as canvas?? any ideas thanks ewan
  6. ewan91

    ExecuteSQL( ) and CStrings

    i got it to work using your second version i agree the first is better and may try that later thanks ewan
  7. ewan91

    storing ints in vectors

    hi i am storing ints in a vector by wrapping in class Integer swingsStore.addElement( new Integer (swing) ); but i am having trouble extacting the value, i don't want to change it just store then extract all the values here it what i currently have do { int size = swingsStore.size(...
  8. ewan91

    ExecuteSQL( ) and CStrings

    hello i'm trying to update mt datacase with the following function void CResultSet::Update2001(CString lab, CString con, CString lib, CString oth, CString seat ) { m_hdbc.OpenEx(&quot;DSN=EwanProject&quot;); CString update = &quot;UPDATE 2001VOTE &quot; + CString (&quot;SET LABOUR =...
  9. ewan91

    using PreparedStatement with database

    thanks for your help i've got it sorted now the res.next( ) line which i'd forgotton was the key ewan
  10. ewan91

    using PreparedStatement with database

    this is the code that sets up connection and executes the SQL public void get97Result( ) { try // establish the Connection { Connection connec = DriverManager.getConnection( &quot;jdbc:odbc:EwanProject&quot; ) ; String seat = &quot;RAYLEIGH&quot;; // just hard coded this in to test...
  11. ewan91

    using PreparedStatement with database

    hi i am using PreparedStatement to return a resultSet of just one row. it seems to work, (compiles and runs) but as soon as i try and extract any values I get the SQL Error: Invalid Cursor State, i've tried a variety of ways and am now stuck!!! thanks ewan
  12. ewan91

    updating databases

    hello i have a database that is working and i can extract values from the database, i now want to update values. I think i have got the correct SQL syntax but get an error saying: No resultSet was produced, i didn't think i would want a resultSet if i was just updating a table any tips??? I...
  13. ewan91

    ResultSet problem

    Hi i have code that compiles, and returns the first row of a resultset to a window, however when i use my menu items to navigate to the last, first etc rows of the result set i get Exception Occurered during event dispatching: java.lang.unsupportedOperationException on the console and...

Part and Inventory Search

Back
Top