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!

Recent content by cluM09

  1. cluM09

    Sort multidimensional array

    Dtracy, Thank you for the help. It allows me to loop through the entire array after I changed to UBound(sortedArray). However, the sortarray function works for the array that I tested, but not when I create the multidimensional array from a file with more columns. The sort mechanism does not...
  2. cluM09

    Sort multidimensional array

    Sorry, the posted test code should be stated "row, col' and not "col, row" as shown below: Wscript.Echo "Unsorted array" j = 0 Wscript.Echo "No." & " | " & "Brand" & " | " & "Color" & " | " & "Price" For i = 0 To UBound(myArray) j = j + 1 ' row, col row, col row, col...
  3. cluM09

    Sort multidimensional array

    Hello, I have a multidimensional array that I need to sort based on the column of the array. I found a function that can sort the multidimensional array based on the column, but it only works with the MD array that has the format of array(col, row). I want to sort the multidimensional array...
  4. cluM09

    Fill hta table with array data

    Remou, Thank you for the direction! But what I need help with now is to be able to add table rows dynamically based on the number of records in my array. Could you help translate the code above into vbscript? I tried it, but it did work work. It works in javascript though.
  5. cluM09

    Fill hta table with array data

    withanh, Thank you for help. I already figured it out. Below is my code. I use a text file that contains the records with the fields separated by a tab character as the data source for the data for my array. I read this text file into the array and then load the data to the table. <HTML>...
  6. cluM09

    Fill hta table with array data

    Ramou, Thank you for the help! What I really want to do with this code is as follows: I have my data set in an array. I want to create an hta script to display my data on the table with one fixed header row and fill the data in the array into the remaining rows. I want to display the table...
  7. cluM09

    Fill hta table with array data

    Hello, I need to fill an hta table with some data from an array. I found a sample html code that does something similar to what I need. However, the script language is javascript. How can I convert the javascript to vbscript? The code is listed below: <HTML> </head> <TITLE>Fill Table</TITLE>...
  8. cluM09

    Determine if file is currently open???

    Check the link below for the information on how to determine the open files. http://www.microsoft.com/technet/scriptcenter/resources/qanda/feb05/hey0216.mspx Hope this will help. CluM09
  9. cluM09

    Need help with regular expression

    Hello, I need to get the string of the line that is enclosed within the square brackets. I try to use the following regular expression, but I keep getting a syntax error. str = "[This is the data]" Set objRE = New RegExp With objRE .IgnoreCase = True .Global = True .Pattern = =...
  10. cluM09

    Get user full name from Win32_UserAccount

    tsuji, I made a mistake with respect to the Win32_Account class. This class does indeed has the FullName property. However, when I hit a group inside the local Administrators group instead of a user, it generates an error "the object does not support this property" which is what I would...
  11. cluM09

    Get user full name from Win32_UserAccount

    tsuji, I tried your suggestion, but I still get the error (null): 0x8004103A. The following works but it only works when the strDomain is set to the computer name. strQuery = "ASSOCIATORS OF {Win32_Group.Domain='" & strDomain & "',Name='" & strGroup & "'} " & _ "WHERE...
  12. cluM09

    Get user full name from Win32_UserAccount

    I need to enumerate the users that belong to a group either a domain or a local group.
  13. cluM09

    Get user full name from Win32_UserAccount

    Hello, I have a need to use WMI to query the use information from a group either in the domain or in a computer. I tried the following WMI query, but it failed with (null): 0x8004103A. Is it possible to use ASSOCIATORS OF query to get the user name and full name with WMI query? strDomain =...
  14. cluM09

    HTA with Editable dropdown listbox

    Hello, I need to create an editable dropdown list box on an HTA form. I found the html and javascript code that will do the editable dropdown listbox which is listed below which works fine. However, I like to know how I can convert the code to use vbscript instead of javascript. Any help will...
  15. cluM09

    Listbox that also allows data entry

    Thanks vacunita for the information! I will try to check the code at the http://chakrabarty.com/pp_editable_dropdown.html#3 link to see what I can do. One thing I want to know if whether I can translate the javascript code into vbscript since the code I use for my application is written in...

Part and Inventory Search

Back
Top