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. JamesGordon

    Array of Array's and end()

    What I wanted was to do something to each array key, with the exception of the last value e.g. produce "col1, col2". I found a solution by using $a = array("col1" => array("title"=>"c1title", "hidden"=>false), "col2" => array("title"=>c2title", "hidden"=>true)); $txt = "SELECT "; foreach($a...
  2. JamesGordon

    Array of Array's and end()

    Right I am now really wanting to do the second code example above. Any ideas on how to test for the end condition?
  3. JamesGordon

    Array of Array's and end()

    Just trying to learn PHP/MySQL. Many thanks. I'll not make the same mistake twice. James.
  4. JamesGordon

    Array of Array's and end()

    I was using the following code: $a = array("col1", "col2"); $txt = "SELECT "; foreach($a in $acol) { $txt .= $acol; if($acol !== end($a)) { $txt .= ", "; } print($acol); This worked okay, only putting a "," if the foreach wasn't at the end of the array. I then tried to make things...
  5. JamesGordon

    PHP MySQL Code Generators

    No doubt this has been asked numerous times in the past but... I'm looking for a PHP code generator that will support forms that access data from lookup tables, sometimes two or three levels deep. All of the generators I've seen are very simple single table lookups. Which is no use to me...
  6. JamesGordon

    PHP and MYSQL

    Sorry this is Windows, but... Check that phpinfo() shows a MySQL section, if not then it isn't working. Check that the PHP.ini is in the path e.g. set PATH=%PATH%;c:\php. Check that you have added the following to httpd.conf: LoadModule php5_module "c:/php/php5apache2.dll" AddType...
  7. JamesGordon

    Embedded C++ 4 - Using STL Link failure

    Using MS Embedded C++ 4. Adding <map> and <string> and then trying to write something like: typedef std::map<std::string, int> jg jg var; var["James"] = 2; I then get the following link error(s): e4TestDlg.obj : error LNK2019: unresolved external symbol "public: __thiscall...
  8. JamesGordon

    Copy additional files to device on project execute

    Thanks, I had hoped that that would not be your answer. At the moment we are using the emulator and as soon as we stop it we loose everything.
  9. JamesGordon

    Current Working Directory

    We have an app that loads a number of files that are in the applications directory. If I launch the App it attempts to load them from the root of the drive, fails to see the files and stops. This is an App that worked on a desktop. I assume that the current working directory of the App is root...
  10. JamesGordon

    Copy additional files to device on project execute

    I'm using Embedded C++ V4. When I execute a project I need to copy additional files to the device/directory so that the executable can run. Can I do this as part of the project, and if so how? Regards, James.
  11. JamesGordon

    Ora 9i:Forms Data Block Wizard-Enforce Data Integrity

    It means that any constraints that can be checked before going to the database and incuring the cost will be done on the client first. It will then either fail and stop or send the data to the database. The database will then repeat the checks and probably others before making the changes. Pros...
  12. JamesGordon

    ORA9i: when running a form the JVM applet window is too small

    That should of been formsweb.cfg
  13. JamesGordon

    ORA9i: when running a form the JVM applet window is too small

    You can set the width and height in formsweb.cdf to 100% rather than a number of pixels.
  14. JamesGordon

    Printing JPanel - Sizing output

    I have a derived JPanel that displays circles, lines etc. All well and good onto the screen as the sizing doesn't matter, I just use the width/height whatever is the smallest. My problems come when I want to print. I need the output to be 6". If I fix the pixels at 350 the image comes out a...
  15. JamesGordon

    Oracle 8i can not install on a Intel P4?

    Or you can copy the CD onto your harddisk and search for a *sym*.dll, there should only be one result, delete or rename the file and run setup.exe from the harddisk.
  16. JamesGordon

    Dailog to inform parent that it is closing

    Sorted, I got the parameters wrong, assumed the constructor was (Frame, boolean) not (Frame, String, boolean), sorry! I then created a method in the JFrame and in the JDialog cast the WindowEvent.getParent() to my JFrame class and called the method to alter the togglebutton.
  17. JamesGordon

    Dailog to inform parent that it is closing

    Yep! I got that by shear fluke. It's the code to notify the JFrame I'm missing? I cannot pass the JFrame in as the parent as it expects a Frame not a JFrame?
  18. JamesGordon

    Java Editors

    NetBeans from www.netbeans.org In my opinion the best I've tried. And it is FREE!
  19. JamesGordon

    Dailog to inform parent that it is closing

    I have a JFrame with a toggle button. The toggle button shows/hides a JDialog, all well and good. What I want to be able to do is inform the JFrame that the user has closed the JDialog via the 'X' of the JDialog and then toggle the button to the off state. Does anybody have an idea on how to...
  20. JamesGordon

    Generation of Plural on Entities

    Type the plural name in yourself in the 'create entity' dialog.

Part and Inventory Search

Back
Top