mibuso.com

Microsoft Business Solutions online community
It is currently Tue May 21, 2013 6:14 pm

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: [Solved] Form B opened from form A, not being closed by form A
PostPosted: Tue May 29, 2012 11:23 am 
Offline

Joined: Fri Feb 16, 2001 8:01 am
Posts: 83
Location: Sønderjylland, Denmark
Country: Denmark (dk)
Hej

I got a form (B) that I need to
- open from another form (A), which is a piece of cake to bake (sorry couldn't stop myself :oops:)
- and keep open when the other form (A) closes

Sample:
Code: Select all
OBJECT Form 50030 FORM A
{
  OBJECT-PROPERTIES
  {
    Date=29-05-12;
    Time=11:19:58;
    Modified=Yes;
    Version List=;
  }
  PROPERTIES
  {
    Width=5390;
    Height=2310;
  }
  CONTROLS
  {
    { 1112800000;CommandButton;1980;550;2200;550;CaptionML=ENU=Open Form B;
                                                 OnPush=BEGIN
                                                          FORM.RUN(FORM::"FORM B");
                                                        END;
                                                         }
  }
  CODE
  {
    BEGIN
    END.
  }
}

OBJECT Form 50031 FORM B
{
  OBJECT-PROPERTIES
  {
    Date=29-05-12;
    Time=11:19:40;
    Modified=Yes;
    Version List=;
  }
  PROPERTIES
  {
    Width=5390;
    Height=2310;
  }
  CONTROLS
  {
  }
  CODE
  {
    BEGIN
    END.
  }
}


The problem is, that when FORM A is being closed, FORM B will also be closed.
Does anyone know, how I can avoid that? :?:

_________________
With Kind Regards
Thoms Hviid Thorn


Last edited by Thomas Hviid Thorn on Tue May 29, 2012 1:16 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: Form B opened from form A, not being closed by form A
PostPosted: Tue May 29, 2012 12:18 pm 
Offline

Joined: Sat Oct 08, 2005 11:22 am
Posts: 499
Location: TURKEY
Country: Turkey (tr)
You can use a codeunit to run Form B.

_________________
Ufuk Asci
Pargesoft


Top
 Profile  
 
 Post subject: [solv] Re: Form B opened from form A, not being closed by fo
PostPosted: Tue May 29, 2012 1:12 pm 
Offline

Joined: Fri Feb 16, 2001 8:01 am
Posts: 83
Location: Sønderjylland, Denmark
Country: Denmark (dk)
Thanks! That worked nicely!

_________________
With Kind Regards
Thoms Hviid Thorn


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: Yashojit Pandhare and 19 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum


Search for:
Jump to: