locked
Help Comparison of string array with another array string (VBScript) I'm a beginner learner RRS feed

  • Question

  • Example:
    
    
    arry1=("micro","microsoft.32899","inteluninstaller","adobe99664") Prog list
    
    arry2=("microsoft","intel","adobe") Target list
    
    for i = 0 to ubound(arry1)
    
    for i = 0 to ubound(arry2)
    
    How do I take the target list to run through prog list to roughly match the string inside.
    Something like "microsoft" in target list run through the prog list and find the close match string with "microsoft.32899" and retrieve out the String of the close match. 
    
    I tried strComp it doesn't work for it, Need help urgently.
    • Edited by fidarkboii Friday, February 15, 2019 12:42 PM
    • Moved by Bill_Stewart Friday, March 15, 2019 7:54 PM Unanswerable drive-by question
    Thursday, February 14, 2019 4:10 PM

All replies

  • Please format your code as code using the code posting tool provided on the edit bar of the post editor. And disable your grammarly.

    Thanks.


    Live long and prosper!

    (79,108,97,102|%{[char]$_})-join''

    Thursday, February 14, 2019 4:54 PM
  • My best shot at removing the unsupported Grammarly tags and using the code posting tool:

    -----

    Example:


    arry1=("micro","Microsoft.32899","inteluninstaller","adobe99664") Prog list
    
    arry2=("microsoft","intel","adobe") Target list
    
    for i = 0 to ubound(arry1)
    
    for i = 0 to ubound(arry2)

    How do I take the target list to run through prog list to roughly match the string inside.

    Something like "microsoft" in target list run through the prog list and found closely match string without lower or upper case sensitive "Microsoft.32899" and retrieve out the String.

    I tried strComp it doesn't work for it, Need help urgently.


    Richard Mueller - MVP Enterprise Mobility (Identity and Access)

    Thursday, February 14, 2019 4:57 PM
  • Wow ...  reformatting services by the moderator ... and even free of charge ...   cool.  ;-)

    Live long and prosper!

    (79,108,97,102|%{[char]$_})-join''

    Thursday, February 14, 2019 5:00 PM