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 TouchToneTommy 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: *

  • Users: milage
  • Content: Threads
  • Order by date
  1. milage

    DBI Library Sybase Open Client Compilation Issue

    Hi, Although this is possibly caused by sybase it is in perl were I wish to solve the problem so I choose this forum over the sybase one. Ok here goes... I have been having some problems using DBI to connect to a sybase database.... sometimes its all fine, other times it doesn't work and this...
  2. milage

    Case statement doesn't cope with values greater than 9?

    Hi, I have this case statement for which the options change depending on the number of subdirectories in a directory. However, lets say there happen to be 15 subdirectories. This causes the case statement to echo "Invalid choice" if the user enters any values except or 1 and 5...
  3. milage

    sed for string in each file

    Hi, Say I have a directory of files each with a header which looks like this: # # $RCSfile: MF.form,v $ # $Author: david $ # $Revision: 1.46.2.6.2.3.2.4 $ # I want to extract from each file into a variable the long revision number between "$Revision: " amd " $" at the end...
  4. milage

    Not sure what I am supposed to use to do this?

    Hi, Say I have a string in my shell script and I want to do a find and replace on it what I am supposed to use and how? I have tried using sed (but then realised this was just for files?) and am now a bit stumped. All I want to do is to find all instances of "^m" within a string and...
  5. milage

    Hi, Say I have an array @a_array

    Hi, Say I have an array @a_array which contain objects which are in turn arrays with 6 elements. I am trying to delete objects from that array whose first element equals an element of another array. So far I have got this far (assume that @a_array and @ignore_variables has been declared and...
  6. milage

    Get list of filenames from file and fetch and tar the files

    Hi, I'm kinda new to shell scripts. I have a file which lists a series of filenames. I need to write a script which gets the list of these filenames from the file, and then tars them up maintaining the directory structure. Cheers Rob
  7. milage

    Getting the value of the matched text

    Hi, I have a string variable which I have done some pattern matching on and I want to assign the matched text to a new variable. I have this: $new_variable = $the_string =~ m/^\s*\w+/; However, when the pattern is found this assigns 1 (true) to the new_variable rather than the string itself...
  8. milage

    Extract data from files using pattern matching

    Hi, I have to extract some information using perl from some files and I assume will deal with pattern matching which I am not very experienced with so am in need of a bit of help. Below is a sample of the format of these files, although of course these files are not totally uniform and can have...
  9. milage

    Get All The Current Environment Variables Into An Array

    Hi, I need to write a script which extracts all the currently set envrionment variables into an array of the format { Variable_Name , Variable_Value } Any help would be much appreciated. Rob Miles
  10. milage

    Setting the TitleBar icon of a JOptionPane

    Hi, I am trying to set the titlebar icon of a JOptionPane to my program's icon but have only succeeded in setting the internal icon (the one often set to a stop sign or exclaimation mark etc). Is there any way of setting the titlebar icon of a JOptionPane? Cheers Milage
  11. milage

    Scrollable Popup Menu

    Hi, I was wondering if it is possible to make a JPopupMenu scroll? If so how would this be done (Swing), would I have to put it into a ScrollPane or what and how would this be done? Any help would be much appreciated! Milage
  12. milage

    JComboBox holding two values per entry?

    Hi, Is it possible to have a JComboBox which holds two values for each entry it lists such as a title and an underlying numeric value for that title? (As with select boxes in HTML) Likewise, is it possible to do the same for a JList component? Cheers Rob
  13. milage

    ResultSet Size?

    Hi, I have looked around to see if anyone has asked this before but they don't so to have! How do you find the number of rows in a resultset? Cheers Robert Miles
  14. milage

    Javadoc Tool - @serial tag warning

    Hi, I have being running my code through the javadoc tool and have got an error saying: javadoc: warning - in class Member.PaymentBean, missing @serial tag for default serializable field: firstname. for each of my declared variables in the class? What do I have to put in the document...
  15. milage

    Complex Type Indentifier

    Hi, I have a hierarchical set of types from which I am implementing tables. Person | User ----- Employer | Employee ----- Contact Person I am trying to create a autonumber column as the identifiying column. But I...
  16. milage

    Returning multiple variables from a funciton.

    I can't believe that I am going to ask this but how do you return more than one variable from a method in Java? Is it the same as in C++ by passing a references to all the variables? Is so what is the syntax, could you give me a sample method declaration. Thanks in advance. Robert Miles
  17. milage

    Should I be using RMI

    Hi, Two questions really: 1) Should I be using RMI 2) If so how much of the program should use RMI I am about to start building a database driven application. However, I am unsure whether to make it 2-tier not using RMI or 3-tier using RMI. The various different clients all need to...
  18. milage

    Inserting html tags into a textarea on click of a button

    Hi, I was wondering if anyone has a form that does this or knows where I can "borrow" one. I need to allow users to enter html tags into the text box that they are currently editing. Currently html tags can be added manually but the users of this website are unlikely to know html so...
  19. milage

    Print out entire contents of Record Set

    Hi, Is there a way of churning out all the contents of a record set. I don't know what fields are going to be in it I just want to list everything in a table without having to explicitly put the name of each field as the field names and numbers are likely to change.
  20. milage

    Get a list of table names and all their fields

    Hi, I know similar questions have been asked regarding this subject but they all seem to relate to Oracle and SQL server databases, not Access How do I get a list of all the Table Names, Fields, Types and Descriptions? Cheers

Part and Inventory Search

Back
Top