Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Samir H.
  Where is Samir H.?
 Yogyakarta
 Indonesia
 Samir H.
 To: Ilya Rabyy
  Where is Ilya Rabyy?
 Fountain Valley
 California - United States
 Ilya Rabyy
 Tags
Subject: RE: GRID INIT Event - update
Thread ID: 311074 Message ID: 311213 # Views: 27 # Ratings: 0
Version: Visual FoxPro 9 SP2 Category: Forms
Date: Wednesday, June 29, 2011 6:01:39 PM         
   


> >
> > What?
> >
> > Mike Gagnon
> > Refox XI +(English version)
>
> What colleague Samir is trying top convey is that he thinks that only Methods should be called in a command, not Event Procedures.
>
> I also not entirely agree with this his statement, because the Event Procedures can be also executed with a command that artificially (for the lack of a better word - or my mental abilities at the moment :-) ) fires that Event.
>
> Regards,
>
> Ilya


> ...because the Event Procedures can be also executed with a command...
I probably still have such (old) code in my app, but I'm removing it as soon as I encounter it when reviewing my app. I think it is wrong to call an event. Events just get fired, we do not fire them. So if I have code in an event that I must re-fire (run again), then I create a new method, move the code (or part of it) from the event to the new method, and then I can call that method as often as I need.
I'm pretty sure I have learned this way of coding from foxite, not from some newcomer but from experienced vfp programmers. I guess many experts use the same practice.

Regards
Samir

ENTIRE THREAD

GRID INIT Event - update Posted by Sajan Jacob @ 6/28/2011 4:20:17 PM
RE: GRID INIT Event - update Posted by Cetin Basoz @ 6/28/2011 4:48:50 PM
RE: GRID INIT Event - update Posted by Sajan Jacob @ 6/28/2011 5:02:06 PM
RE: GRID INIT Event - update Posted by Cetin Basoz @ 6/28/2011 11:09:35 PM
RE: GRID INIT Event - update Posted by Sajan Jacob @ 6/29/2011 4:23:37 AM
RE: GRID INIT Event - update Posted by Ilya Rabyy @ 6/28/2011 5:04:29 PM
RE: GRID INIT Event - update Posted by Cetin Basoz @ 6/28/2011 11:04:25 PM
RE: GRID INIT Event - update Posted by Samir H. @ 6/28/2011 7:07:21 PM
RE: GRID INIT Event - update Posted by Cetin Basoz @ 6/28/2011 11:10:17 PM
RE: GRID INIT Event - update Posted by Ilya Rabyy @ 6/28/2011 11:34:13 PM
RE: GRID INIT Event - update Posted by Cetin Basoz @ 6/29/2011 12:35:54 PM
RE: GRID INIT Event - update Posted by Samir H. @ 6/29/2011 4:17:16 AM
RE: GRID INIT Event - update Posted by Mike Gagnon @ 6/28/2011 11:57:13 PM
RE: GRID INIT Event - update Posted by Ilya Rabyy @ 6/29/2011 4:30:16 PM
RE: GRID INIT Event - update Posted by Samir H. @ 6/29/2011 6:01:39 PM
RE: GRID INIT Event - update Posted by Ilya Rabyy @ 6/28/2011 4:55:01 PM
RE: GRID INIT Event - update Posted by Sajan Jacob @ 6/28/2011 5:16:55 PM
RE: GRID INIT Event - update Posted by Ilya Rabyy @ 6/28/2011 6:12:43 PM
RE: GRID INIT Event - update Posted by Tamar Granor @ 6/28/2011 10:40:21 PM