Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Ilya Rabyy
  Where is Ilya Rabyy?
 Fountain Valley
 California - United States
 Ilya Rabyy
 To: Tiago Bernardo
  Where is Tiago Bernardo?
 Caldas da rainha
 Tiago Bernardo
Subject: RE: Set TTL
Thread ID: 209673 Message ID: 209738 # Views: 1 # Ratings: 0
Version: Visual FoxPro 9 SP2 Category: Win32API programming
Date: Tuesday, December 30, 2008 5:10:28 PM         

> Hello, I'm using a program that uses a foxpro framework. With this program it's possíble to program the visual look of the forms and the beavior of objects. My problem is that all the users use the program with the same session and it's impossíble to see who is the responsable for that problem. My question is, since I have access to the framework and I know the name of the botton to close session, it's possíble to set a timer and after that time the program execute the "press botton" funcion? Then the users have to start session with is own login and password. Thanks in advance. I'm a Begginer in VFP ;) so sorry for any mistake.

Welcome to the VFP Developers Forum, Tiago!

Yes, it is possible to add a timer control to some container type object, and execute [Container.]CommandButton.Click event procedure off the [Container.]Timer.Timer event procedure. However:

First, it is not clear, though, from your description, whether you are dealing with an end user application (EXE), or some development framework (like VFP's IDE itself, with this or that set of controls, classes, etc., added).

Could you specify which of the two you are dealing with?

Second, it looks like you are trying to do two things:

- identify and differentiate the end users by their login names and passwords (doable in EXE, virtually impossible in VFP's IDE by any other way but by their Windows User's login name), and

- have some error tracking "device" in place to trap the error, procedure/command generated this error, and what user was executing this command/procedure when this error occurred.

Is this correct?

Once you clarify these above matters here, we can better understand what problem(s) you are facing, and we will be able to help you better.

Once again: welcome to the Forum! You have come to the right place!




Set TTL Posted by Tiago Bernardo @ 12/30/2008 12:32:38 PM
RE: Set TTL Posted by Ilya Rabyy @ 12/30/2008 5:10:28 PM