Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Bernard Bout
  Where is Bernard Bout?
 Brisbane
 Australia
 Bernard Bout
 To: Saifuddin K Hussain
  Where is Saifuddin K Hussain?
 Dubai
 United Arab Emirates
 Saifuddin K Hussain
 Tags
Subject: RE: Form does not appear again
Thread ID: 154449 Message ID: 154575 # Views: 1 # Ratings: 0
Version: Visual FoxPro 9 Category: Forms
Date: Tuesday, December 18, 2007 2:29:34 AM         
   


> >
> > Saify,
> >
> > As Marcia is fond of saying, "my crystal ball is not working today." How are you calling that form? Can you please provide us with that code?
> >
> > Ken
> > You shall know the truth - and the truth shall set you free. (John 8:33)
>
> Please find the attached form. In this form I am facing one more problem, i.e., when I click on Save Button the cursor goes to Item Code ( which I did in click event of the savebutton) but when I press Enter on savebutton the cursor jumps to the "new price entry". I want the same result by enter or by click.
>
> How can I avoid this? Please guide
>
> The Code of the Save and Exit button is as follows:
>
> Save Button
> ------------
>
micode = ThisForm.contMaster.txtIcode.Value 
> mprice = ThisForm.contMaster.mprice.value
> SELECT dicode
> SET ORDER TO icode
> SEEK micode IN dicode
> IF FOUND()
>    REPLACE sell_price WITH mprice
> ENDIF
> ThisForm.contMaster.mprice.value = 0
> ThisForm.contMaster.txtIcode.SetFocus    

>
> Exit Button
> -----------
>
ThisForm.Release

>
> Init Event of the form
> ----------------------
>
LPARAMETER lType
> Public retval
> Store 0 to retval
> SET EXCLUSIVE OFF
> SET DATE BRITISH 
> SET CENTURY ON 
> SET deleted ON 
> This.Height=519
> This.Width=681
> This.vtype = '19'
> ThisForm.contMaster.mprice.Value = 0
> ThisForm.contMaster.txtIcode.SetFocus 

>
> Saify
>
>

Hi Saifuddin

I notice that you are using the VFP Form skinner. I am sure that is where your problem is. I suggest for testing you comment out any code ref to the skinner and see if this form appears or not. If it does then you have your answer and can investigate further.

But I am almost sure you will find it in this area.

Bernard

** If you see someone without a smile, give em one of yours :) **

ENTIRE THREAD

Form does not appear again Posted by Saifuddin K Hussain @ 12/16/2007 8:29:05 AM
RE: Form does not appear again Posted by Ken Murphy @ 12/16/2007 2:14:02 PM
RE: Form does not appear again Posted by Saifuddin K Hussain @ 12/17/2007 10:37:58 AM
RE: Form does not appear again Posted by Ken Murphy @ 12/17/2007 12:49:02 PM
RE: Form does not appear again Posted by Tamar Granor @ 12/17/2007 10:28:58 PM
RE: Form does not appear again Posted by Ken Murphy @ 12/18/2007 12:31:20 PM
RE: Form does not appear again Posted by Andy Kramek @ 12/18/2007 12:49:46 PM
RE: Form does not appear again Posted by Ken Murphy @ 12/18/2007 12:57:15 PM
RE: Form does not appear again Posted by Bernard Bout @ 12/18/2007 2:29:34 AM
RE: Form does not appear again Posted by Saifuddin K Hussain @ 1/19/2008 1:19:04 PM
RE: Form does not appear again Posted by Bernard Bout @ 1/21/2008 7:46:22 AM
RE: Form does not appear again Posted by SAIFUDDIN HUSSAIN @ 1/23/2008 12:39:11 PM
RE: Form does not appear again Posted by Bernard Bout @ 1/24/2008 6:20:52 AM
RE: Form does not appear again Posted by SAIFUDDIN HUSSAIN @ 1/27/2008 12:55:39 PM
RE: Form does not appear again Posted by Ken Murphy @ 1/27/2008 2:05:38 PM