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

  • Users: jges
  • Order by date
  1. jges

    label control not updating during 'busy' activity

    https://social.technet.microsoft.com/wiki/contents/articles/33280.vb-net-invoke-method-to-update-ui-from-secondary-threads.aspx
  2. jges

    regex in query

    Thank you! worked as expected.
  3. jges

    regex in query

    I have a table of members for a small website, it was hit pretty hard by spammers recently. I've noticed that many (but not all) of the spammer email addresses have 3 or more groups after the '@' character, like these: someone@d.beardtrimmer.com someone@get.cheap.meds.biz I'm trying to run a...
  4. jges

    problem with setting path via objSysEnv

    This page is my go to reference for VBScript and environment variables.
  5. jges

    user supplied sort function

    Ok, I got rid of all the delegate stuff and added the following sort method: Public Sub SortWidgets(ByVal sortFunction As System.Comparison(Of Widget)) _widgetList.Sort(sortFunction) End Sub Now I can write my own sort function and pass it in like this: myObject.Sort(AddressOf...
  6. jges

    user supplied sort function

    And here's some code where I've tried to use a delegate, but I get an Invalid Cast Exception: unable to cast object of type 'CustomSort' to type 'System.Collections.Generic.IComparer'. I don't understand why the previous code works by passing in the "AddressOf" the sort function, but this code...
  7. jges

    user supplied sort function

    I have a class that has a collection of objects (a generic list). I'd like the user of my class to be able to supply a custom sort function, similar to the example code below. However, in my actual code, I'd like to keep the list of objects private, since the user doesn't really need access to...
  8. jges

    The Supply Ship

    Making a one-way trip to Omega: Stocking up to allow a return trip: Final Answer:
  9. jges

    Handling "box" characters in a string

    Create a small project that takes one of these strings as input and loop through the string character by character to see what the problem is. Use the Asc and/or the AscW functions to identify the characters. http://msdn.microsoft.com/en-US/library/zew1e4wc(v=vs.80).aspx Once you know what the...
  10. jges

    Getting error in passing numeric value from vb.net(2005) to visual foxpro(9) table.

    Perhaps FoxPro doesn't like you converting the value to a string?
  11. jges

    Delete Lines from Text File that DO NOT contain...

    For a good regex reference, I suggest Mastering Regular Expressions by Jeffrey Friedl. It explains not only the syntax of regex, but also explains how to write efficient regex based on how the underlying "engine" works.
  12. jges

    VBScript: 2 Problems in Script that changes Visio Key

    When testing scripts it is best to temporarily remove (comment out) the "on error resume next" statement(s) and add message boxes or other output so that you see what is happening.
  13. jges

    How to find position 1421 in a txt file

    I wouldn't delete anything if your results don't line up... I'll echo strongm's question:
  14. jges

    More detailed script to delete files and folders older than X days within a specific folder

    Keep it in mind, but also put it in your script. I'm 95% sure it will solve your problem.
  15. jges

    More detailed script to delete files and folders older than X days within a specific folder

    In general, it is not a good idea to modify a collection of files (move, add, or delete files) while you are iterating through it. I'd suggest marking the files that you want to delete within the loop (add the file names to a new array or dictionary) then when the loop that checks the file dates...
  16. jges

    Get Characters from Inside String Between Symbols

    You can use the InStr function to find the positions of the "[", "]", "(", and ")" characters. With this information you can use the Mid function to extract portions of the string between those positions.
  17. jges

    Sort Table by ALL COLORS

    Why not just sort your data using the same criteria as the conditional formatting?
  18. jges

    List duplicate line in a text file

    While regex is certainly an option, there may be an easier solution here. From the example data given, it appears that you could split your string into 2 parts: 1)everything before REV and 2)everything after REV. Then you could base your comparison on the first part of the string and if there is...
  19. jges

    List duplicate line in a text file

    \20016_6010_00_XCO_PAN-INSERT \123-1118 \123-6001 \200191010_00_10100_XCO_COVER-MAIN-INSERT \20019201_01_2010_XCO_EJECTOR-IMPRESSION_SO_V \20019202_00_2020_XCO_EJECTOR-MAIN-INSERT \20019203_00_2030_XCO_EJECTOR-INSERT_SO_V \20019203_00_2030_XCO_EJECTOR-INSERT_SO_V...
  20. jges

    Linked list using structures

    The MSDN page has an example.

Part and Inventory Search

Back
Top