Another solution is to create two MDI forms, the first one contains the
calendar and invokes the second one On-Click.

 

To position the first form on the right place at the screen, the EEP of Form
properties On After start  must contain the statements

 

  PROPERTY RBASE_FORM TOP  NNN

  PROPERTY RBASE_FORM LEFT NNN

 return

 

You can open this form with the statement:

 

Edit using <formname>  mdi as <formname_alias>

 

In the ON click EEP you can store the date which has been selected (assume
V_DB_Date) and this EEP also contains the command:

 

Closewindow  formname2_alias

Edit using <formname2>   where DB_date = .V_DB_date  mdi as
<formname2_alias>

 

The first statement above will close the second form in case it is not the
first selection and is neglected if it is not there (at least there is no
error shown)

 

You need to specify the same statements in the form  properties EEP  On
after start about the place on the screen in the second form

 

Success

 

Tony

 

 

 

From: [email protected] [mailto:[email protected]] On Behalf Of Tommy Croker
Sent: donderdag 27 mei 2010 23:55
To: RBASE-L Mailing List
Subject: [RBASE-L] - Close Form

 


I have a scheduling form with a variable calendar where the user can select
a different day to view the schedule for that day.  I'm trying to either
refresh the current form so that it displays all the calls from the selected
day or close the form and open it again reflecting the new date selected.  

When I use a CLOSEWINDOW command in the "on click" eep, it doesn't close the
other form.  Therefore, if I select 10 different dates, I have 10 different
forms running in the background.  As soon as I close the form that I'm
working on, all the other windows close.  Am I missing something or is there
an easier way to do this? 

Any help would be appreciated. 

 

 

 

 

  _____  

The New Busy is not the old busy. Search, chat and e-mail from your inbox.
Get started.
<http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:
WL:en-US:WM_HMP:042010_3> 

Reply via email to