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 Mike Lewis 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. ob1kanobee

    Evaluating alpha/numeric values

    First, thanks to all who replied. Since this project will also include global application, I will need to consider the points brought up by mmerlinn. Sounds to me like a simple evaluation is not in order....bummer!
  2. ob1kanobee

    Evaluating alpha/numeric values

    The problem with using that method is that if I have a numeric value such as 22222 and 555, it considers the first to be less than the second which is not true because it's comparing the data from left to right.
  3. ob1kanobee

    Evaluating alpha/numeric values

    Is there a way to evaluate if one alpha/numeric value is greater than the other. Example: Canadian Postal Code A4A6B is greater than Canadian Postal Code A2A1B I tried the eval method, but it returns an error.
  4. ob1kanobee

    Getting int value for day of week from Calendar class

    Thanks again Feherke.
  5. ob1kanobee

    Getting int value for day of week from Calendar class

    Here's an easy example that will result in day of week is 7: Date thisDate = new Date("1-Feb-2006 10:35:00 PM"); Calendar firstCal = Calendar.getInstance(); firstCal.setTime(thisDate); System.out.println("Date = " + firstCal.getTime()); int firstday =...
  6. ob1kanobee

    Getting int value for day of week from Calendar class

    I'm confused. The value I'm getting back now for variable firstCal is correct for Wednesday, February 1, 2006, but the firstCal.DAY_OF_WEEK is still returning a 7?
  7. ob1kanobee

    Getting int value for day of week from Calendar class

    I have my Calendar date set for Wednesday, February 1, 2006. I am trying to get the int value for the day of week for that date, which I assume should return 3 for a Wednesday. Calendar myCal = Calendar.getInstance(); firstCal.set(Calendar.MONTH,2); firstCal.set(Calendar.DAY_OF_MONTH,1)...
  8. ob1kanobee

    Help with Set commands in Date method

    Thanks feherke for the info. It compiles, but with a nasty message.
  9. ob1kanobee

    Help with Set commands in Date method

    Since switching over to netbeans 5.0, I am getting a warning message that the 3 set commands below in java.util.Date have been deprecated. The class still compiles. Have these set commands changed? Any help will be appreciated. Thanks. date in bold below is a variable being passed to the method...
  10. ob1kanobee

    Combining 2 Vectors into 1

    Thanks stefanwagner, that's much easier.
  11. ob1kanobee

    Combining 2 Vectors into 1

    Hi, I have 2 Vectors with the exact same structure that I want to combine into one. Currently, I'm looping through first and second vector with a method that returns a list with both vectors' values. Is there an easier way of doing this?
  12. ob1kanobee

    Create a multi-line "Title" for a row tag

    Nevermind, just figured it out. String valToDisplay = val1 + "\n" + val2;
  13. ob1kanobee

    Create a multi-line "Title" for a row tag

    String sTitle = "Display One Value" On the Title of my row <TR>, I want to display a variable that contains multi-lines, example: When hovering the row, I would like user to see: "Display Value 1" "Display Value 2" Instead of "Display Value 1 Display Value 2" Can this be done using Java code...
  14. ob1kanobee

    compareTo method

    Thanks Dave, will do.
  15. ob1kanobee

    compareTo method

    I'll be using this method for verifying canadian postal codes. So I need to know when Postal Code "A1A5K9" is greater value than "A1A5J4". The compareTo method returns a true if the object being compared to is of greater value. Since I'm fairly new with javascript, I didn't know if value1 >...
  16. ob1kanobee

    compareTo method

    Is there a similar method in javascript like there is in java for the compareTo method?: sVariable1.compareTo(sVariable2);
  17. ob1kanobee

    Help writing to comma delimited file

    Nevermind, I just figured it out: var ForAppending = 8; csvFile = fso.OpenTextFile("c:\\MyText.csv", ForAppending, false); csvFile.WriteLine("ArrayValue1,ArrayValue2,ArrayValue3"); csvFile.close();
  18. ob1kanobee

    Help writing to comma delimited file

    Help! I am unable to correctly write to a comma-delimited file. What am I doing wrong? var fso, f1, csvFile, outputLine; var ForWriting = 2; fso = new ActiveXObject("Scripting.FileSystemObject"); f1 = fso.GetFile("c:\\MyText.csv")...
  19. ob1kanobee

    Removing an element from array

    Thanks for the responses, I knew there had to be a better way.

Part and Inventory Search

Back
Top