Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. sponsors. rss.
 From: coder yogi
  Where is coder yogi?
 Cayman Islands
 Antarctica
 coder yogi
 To: Pete Sass
  Where is Pete Sass?
 Marathon, Ontario
 Canada
 Pete Sass
 Tags
Subject: RE: netmon
Thread ID: 199728 Message ID: 199766 # Views: 39 # Ratings: 0
Version: Visual FoxPro 8 Category: ODBC, ADO and OLEDB
Date: Thursday, October 23, 2008 5:13:28 AM         
   


> > I want to ask a question about the netmon system written by Mr. Pete Sass:
> > Is the grid in the front end primary network monitoring window connected in some way to the same table in the back end? Or is the connection made automatically by vfp?
> > If it is to be done manually, can somebody please guide me as to how it is done in that particular project? And why is there no code for that in the source codes of the monitoring system? I am trying to understand this project for a long time so a genuine and early reply would be greatly appreciated.
> >
> > Thanks a lot....
>
>
> Afternoon from Canada,
> If you right-click on the main form with the Grid and select
> the Data Environment option you will find the table "Monitor"
> is in the Data Environment for this form.
> If you now right-click on the Grid and review the properties
> in the Data tab you will see the grid is bound to the
> Monitor table via the RecordSource property set to monitor and
> the RecordSoruceType set to 1-Alias.
> Check the ControlSource for the each column in the grid and you
> will find the grid's column bound to the fields in the Monitor
> table.
> So there is no source code to bind the Monitor table to the
> grid object. It is bound via properties in the grid object.
> However interestinly enough look at the Column3 and you will
> see it contains 2 objects called image1 and image2. These
> images are the OK and NO gif images displayed depending upon
> a successful ping or not to an ipaddress.
> Pete "the IceMan", from the Great White North of Canada.

Thanks a lot sir. I am always amazed by your patience and lucidity in explaining the concepts.
I also wanted to know what does RecordSourceType set to 1-Alias mean?
Secondly i wanted to ask whether in the code for the ping program i can use the command
thisformset.monitor.image1.Picture = 'ok.gif'
in order to select an image based on whether a computer can be reached or not.

Thanks....



COMPLETE THREAD
netmon Posted by coder yogi @ 10/22/2008 8:02:14 PM
RE: netmon Posted by coder yogi @ 10/22/2008 8:56:48 PM
RE: netmon Posted by Pete Sass @ 10/22/2008 8:57:06 PM
RE: netmon Posted by coder yogi @ 10/23/2008 5:13:28 AM
RE: netmon Posted by coder yogi @ 10/23/2008 6:01:24 PM
RE: netmon Posted by Pete Sass @ 10/28/2008 8:15:02 PM
RE: netmon Posted by coder yogi @ 11/6/2008 4:29:28 PM