Solved

separate output strings into a flexgrid in order

Posted on 2014-12-06
8
88 Views
Last Modified: 2014-12-07
On the attached project, I have a BlockList form that shows all blocked websites in among several text files.  These text files are located in the test folder.  When clicking "Show Blocked Sites" they output in the Immediate Window, but I would instead like them to output to a Flexgrid for viewing purposes.

For example, execute the program under the BlockedList Form and choose the date range from 11/11/2014 to 11/24/2014 and you will find all the typical results below in the immediate window.


30                adnxs.com: ib.adnxs.com.                           192.168.1.100
3                  blogspot.com: adsense.blogspot.com.       192.168.1.100


However I would like to separate these strings as indicated above into 3 columns in a flexgrid.  Then also list them from greatest to smallest number of blocked sites



Any help is always appreciated.
CB.zip
0
Comment
Question by:al4629740
  • 4
  • 4
8 Comments
 
LVL 46

Accepted Solution

by:
Martin Liss earned 500 total points
ID: 40485205
Consider this a first draft. I assume you want to summarize the websites but I need some direction on how to do that.
Q-28575780.zip
0
 

Author Comment

by:al4629740
ID: 40485457
Looking great.  It is exactly in the order it should be.

The only thing I'm pondering is what to do when certain sites that come up as

^.*s(3|e)x: expertsexchange.112.2o7.net.

I have to figure out what those sites are
0
 
LVL 46

Expert Comment

by:Martin Liss
ID: 40485553
Are you implying that you don't want any summarization?
0
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 

Author Comment

by:al4629740
ID: 40485852
Sounds good : )  What do you mean by summarization?
0
 
LVL 46

Expert Comment

by:Martin Liss
ID: 40485917
Well I thought there might be duplicates that you'd want added up and shown as one total, but I see now that there aren't any complete duplicates. There are for example a lot that contain "tumblr.com" but none where the second column is exactly the same.
0
 

Author Comment

by:al4629740
ID: 40486041
Is it possible to put the following headers in?

#Blocked          Site             IP Address
0
 
LVL 46

Expert Comment

by:Martin Liss
ID: 40486154
0
 

Author Comment

by:al4629740
ID: 40486165
Thank you
0

Featured Post

ScreenConnect 6.0 Free Trial

Explore all the enhancements in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI, app configurations and chat acknowledgement to improve customer engagement!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

822 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question