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 SkipVought 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: omoo
  • Order by date
  1. omoo

    Adding number behind variable

    actually I am writing this in perl and there are many other lines that follows after this 2 lines that are not in the same format. I just need to change the 1st line. How to implement awk in perl?
  2. omoo

    Adding number behind variable

    input: xxxxxxx, SPEC:LB,xxxxxx xxxxxxx, SPEC:M1,xxxxxx required output: xxxxxxx, SPEC:LB1,xxxxxx xxxxxxx, SPEC:M11,xxxxxx
  3. omoo

    Adding number behind variable

    I have the following command which could not work. I need to add the number "1" behind the variable. if ($line =~ /(SPEC:)(\w{2})/){ $line=~s/(SPEC:)(\w{2})/$1$21/; } print OUT ("$line");
  4. omoo

    loop through 20 variables

    Hi, I have the following code to validate the fields of a form. I have 20 of such field (filesize1, filesize2,...,filesize20). Can anyone help to advise me on what to add to this code so that it can loop through all the 20 variables? Bascially, I need to change the filesize variable so that it...
  5. omoo

    Multiple insertion if textbox is not blank

    I have 6 textboxes where user can input data (or can leave it blank). I need to insert all the data (if not blank) into the database. How should be SQL query be like? insEntrydate = pd(DAY(date()),2) & "." & pd(MONTH(date()),2) & "." & pd(YEAR(date()),2) insOwner = Request.Form("txtselOwner")...
  6. omoo

    4 or more dynamic dropdown lists

    Anyone can help with this?
  7. omoo

    4 or more dynamic dropdown lists

    Hi, I have found in the forum examples or 2 dropdown lists and 3 dropdown list. Does anyone have any idea how to do 4 or more dropdown list? I tried to modify it from an example script found here but failed. This is what I have done after modification: <% Function QuadLinkedList(oCon...
  8. omoo

    Editing contents of a file with the contents of another file

    Hi, I am not sure how to start doing this so I hope to get some advice as to how to start. I have 2 files. The source file contains data that I needed is in columns delimited by ";". For example, in this format: "CONTINENT","COUNTRY","CITY","ID" "asia","japan","tokyo","123"...
  9. omoo

    dynamic drop-down list

    Hi, I have the following forms which allow the user to input the blank fields by choosing the value from dropdown list(existing data in database) or manually input the data in the blank field. I need to do a dynamic drop-down list where after I choose the value in the 1st drop down list, the...
  10. omoo

    Check if filename is in directory

    Hi feherke, I got this error msg when I tried to use your script: test: argument expected
  11. omoo

    create file with same filename but zero contents

    Hi, I need to create a file with the same filename as another file in another directory but without the contents. For example, I have: originaldirectory/oldfile.zip size:1234kb I need to create: newdirectory/oldfile.zip size:no contents - 0kb
  12. omoo

    Check if filename is in directory

    Hi, I have 2 directories, 1st dir with actual files and the 2nd dir with files with zero contents. What command in unix can I use to check for every file in 2nd dir, whether there is a matching filename in 1st dir.If no matching, delete it; if yes, go to next file. For example, 1st dir...
  13. omoo

    Comparing items in 2 files

    I need the original data in file1 to remain if it is not in file2 but comm command will delete them. For example, file1: item5 item9 item10 item2 file2: item1 item2 item3 item5 item6 item7 correct new file1: item5 item2 using comm, new file1: item5
  14. omoo

    Script problem and syntax error

    Hi I have the following script and have problem debugging the problems. The function of this script is to make sure the entire file is being received (the filesize of a data is not changing after 20 seconds) and start moving the file to another directory. This script should be started every...
  15. omoo

    Comparing items in 2 files

    Hi, I have 2 files with contents in them and I need to compare each item in each file. File1: item4 item5 File2: item2 item3 item5 item6 The items names can be of different lengths. If the items in the File1 are not in File2, delete the missing item in File1. The resulting File1 in the...
  16. omoo

    How to stop table from resizing when browser resize

    Hi, I tried to use "width" but it cannot work. I forgot to say that the 1st column of the table contains words, 2nd column is a textbox and 3rd column is a drop down box. When I resize the windows browser, the 2 boxes did not get resize but the words at the 1st column change from one line to 2...
  17. omoo

    How to stop table from resizing when browser resize

    Hi, I have a table with values in each cells but I do not want the size of the table to become smaller when I resize the window browser smaller. Especially when I resize the vertical part of the window browser, the table will move in and become thinner too. How can I do this?
  18. omoo

    Validate numerical value

    Oh, now I saw all the latest posts. Thanks all for the help!!
  19. omoo

    Validate numerical value

    Hi manarth, Your code is good for checking numbers but I realise I need to allow decimals too. This validation will not allow decimals. Can anyone help?
  20. omoo

    Validate numerical value

    Hi, I have the following java function that validate the form for numerical values: function validate_numeric(field, alerttxt) { with (field) { var strValidChars = "0123456789"; var strChar; var blnResult = true; for (i = 0; i < value.length && blnResult == true; i++) {...

Part and Inventory Search

Back
Top