Re: [Gambas-user] Displaying the same form n times

2010-12-21 Thread vikram
Thank you very much :)

--- On Tue, 12/21/10, vikram austin...@yahoo.com wrote:

From: vikram austin...@yahoo.com
Subject: 
To: self austin...@yahoo.com
Date: Tuesday, December 21, 2010, 4:21 AM

just use .ShowModal insteed of .show

2010/12/20 vikram austin...@yahoo.com:
 Hi,

 Thanks a lot for your response :)
 This opens all the IP
 Input dialogs at one go. It would be better if the IP input dialogs
 were displayed one after the other. Maybe theres a way to link one dialog's 
 Open event to another's Close event, or maybe there is some other way to do 
 this.

 Thanks again,
 Vikram

 --- On Mon, 12/20/10, vikram austin...@yahoo.com wrote:

 From: vikram austin...@yahoo.com
 Subject: [Gambas-user] Displaying the same form n times
 To: austin...@yahoo.com
 Date: Monday, December 20, 2010, 6:52 AM

 PUBLIC SUB Button1_Click()

  DIM count AS Integer
  dim hForm as IPinput
  ascount = txtAScount.Text        'Point 1  '''never use underscore
 in names and str to int is automatic

  FOR count = 1 TO ascount
    hForm = New IPinput
    hForm.show

  NEXT
 END



 in IP Input form add :

 STATIC PUBLIC aIP as NEW STRING[]



 PUBLIC SUB Button_Clic()

 IPInput.aIP.Add(txtInput.Text)

 END










 2010/12/20 vikram austin...@yahoo.com:
 Hi,

 I have two forms in my application, the first one asks how many Application 
 Servers to configure, and then displays second one(IP input dialog) for each 
 Application Server. For example if there are 5 Application Server, the IP 
 input
  dialog is displayed 5 times.

 I was thinking of calling the IP input dialog from a FOR loop within the 
 first form,

 PUBLIC SUB Button1_Click()

   DIM count AS Integer

   ascount = CInt(txt_AScount.Text)        'Point 1

   FOR count = 1 TO ascount
     IPinput.show

   NEXT
 END

 There are two things I am unsure of here:
 1.the number of IP Addresses to be entered is to decided
 at runtime, I was thinking of storing all IP Addresses entered via the IP 
input dialog into a String array. But there is no
  way of deciding what the size of the string array should be till Point 
 1(marked in code), and it is not possible syntactically to define an array 
 at that point in code.
 2.The FOR loop for displaying the IP input dialog is not displaying the form
  ascount times. It only displays it once.

 This probably not as complex as it seems, but i am stuck at this point 
 trying to find a solution to this :( I am attaching a sample project with 
 this mail for your reference.

 Any help would be greatly appreciated.

 Thanks in advance,
 Vikram




 --
 Lotusphere 2011
 Register
 now for Lotusphere 2011 and learn how
 to connect the dots, take your collaborative environment
 to the next level, and enter the era of Social Business.
 http://p.sf.net/sfu/lotusphere-d2d
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user





 --
 Fabien Bodard







 --
 Lotusphere 2011
 Register now for Lotusphere 2011 and learn how
 to
 connect the dots, take your collaborative environment
 to the next level, and enter the era of Social Business.
 http://p.sf.net/sfu/lotusphere-d2d
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user




-- 
Fabien Bodard



  


  
--
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Displaying the same form n times

2010-12-20 Thread Fabien Bodard
PUBLIC SUB Button1_Click()

  DIM count AS Integer
  dim hForm as IPinput
  ascount = txtAScount.Text'Point 1  '''never use underscore
in names and str to int is automatic

  FOR count = 1 TO ascount
hForm = New IPinput
hForm.show

  NEXT
END



in IP Input form add :

STATIC PUBLIC aIP as NEW STRING[]



PUBLIC SUB Button_Clic()

IPInput.aIP.Add(txtInput.Text)

END










2010/12/20 vikram austin...@yahoo.com:
 Hi,

 I have two forms in my application, the first one asks how many Application 
 Servers to configure, and then displays second one(IP input dialog) for each 
 Application Server. For example if there are 5 Application Server, the IP 
 input dialog is displayed 5 times.

 I was thinking of calling the IP input dialog from a FOR loop within the 
 first form,

 PUBLIC SUB Button1_Click()

   DIM count AS Integer

   ascount = CInt(txt_AScount.Text)        'Point 1

   FOR count = 1 TO ascount
     IPinput.show

   NEXT
 END

 There are two things I am unsure of here:
 1.the number of IP Addresses to be entered is to decided at runtime, I was 
 thinking of storing all IP Addresses entered via the IP input dialog into a 
 String array. But there is no
  way of deciding what the size of the string array should be till Point 
 1(marked in code), and it is not possible syntactically to define an array at 
 that point in code.
 2.The FOR loop for displaying the IP input dialog is not displaying the form 
 ascount times. It only displays it once.

 This probably not as complex as it seems, but i am stuck at this point trying 
 to find a solution to this :( I am attaching a sample project with this mail 
 for your reference.

 Any help would be greatly appreciated.

 Thanks in advance,
 Vikram




 --
 Lotusphere 2011
 Register now for Lotusphere 2011 and learn how
 to connect the dots, take your collaborative environment
 to the next level, and enter the era of Social Business.
 http://p.sf.net/sfu/lotusphere-d2d
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user





-- 
Fabien Bodard

--
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Displaying the same form n times

2010-12-20 Thread vikram
Hi,

Thanks a lot for your response :)
This opens all the IP
Input dialogs at one go. It would be better if the IP input dialogs
were displayed one after the other. Maybe theres a way to link one dialog's 
Open event to another's Close event, or maybe there is some other way to do 
this.

Thanks again,
Vikram

--- On Mon, 12/20/10, vikram austin...@yahoo.com wrote:

From: vikram austin...@yahoo.com
Subject: [Gambas-user] Displaying the same form n times
To: austin...@yahoo.com
Date: Monday, December 20, 2010, 6:52 AM

PUBLIC SUB Button1_Click()

  DIM count AS Integer
  dim hForm as IPinput
  ascount = txtAScount.Text'Point 1  '''never use underscore
in names and str to int is automatic

  FOR count = 1 TO ascount
hForm = New IPinput
hForm.show

  NEXT
END



in IP Input form add :

STATIC PUBLIC aIP as NEW STRING[]



PUBLIC SUB Button_Clic()

IPInput.aIP.Add(txtInput.Text)

END










2010/12/20 vikram austin...@yahoo.com:
 Hi,

 I have two forms in my application, the first one asks how many Application 
 Servers to configure, and then displays second one(IP input dialog) for each 
 Application Server. For example if there are 5 Application Server, the IP 
 input
 dialog is displayed 5 times.

 I was thinking of calling the IP input dialog from a FOR loop within the 
 first form,

 PUBLIC SUB Button1_Click()

   DIM count AS Integer

   ascount = CInt(txt_AScount.Text)        'Point 1

   FOR count = 1 TO ascount
     IPinput.show

   NEXT
 END

 There are two things I am unsure of here:
 1.the number of IP Addresses to be entered is to decided at runtime, I was 
 thinking of storing all IP Addresses entered via the IP input dialog into a 
 String array. But there is no
  way of deciding what the size of the string array should be till Point 
 1(marked in code), and it is not possible syntactically to define an array at 
 that point in code.
 2.The FOR loop for displaying the IP input dialog is not displaying the form
 ascount times. It only displays it once.

 This probably not as complex as it seems, but i am stuck at this point trying 
 to find a solution to this :( I am attaching a sample project with this mail 
 for your reference.

 Any help would be greatly appreciated.

 Thanks in advance,
 Vikram




 --
 Lotusphere 2011
 Register now for Lotusphere 2011 and learn how
 to connect the dots, take your collaborative environment
 to the next level, and enter the era of Social Business.
 http://p.sf.net/sfu/lotusphere-d2d
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user





-- 
Fabien Bodard



  


  
--
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Displaying the same form n times

2010-12-20 Thread Fabien Bodard
just use .ShowModal insteed of .show

2010/12/20 vikram austin...@yahoo.com:
 Hi,

 Thanks a lot for your response :)
 This opens all the IP
 Input dialogs at one go. It would be better if the IP input dialogs
 were displayed one after the other. Maybe theres a way to link one dialog's 
 Open event to another's Close event, or maybe there is some other way to do 
 this.

 Thanks again,
 Vikram

 --- On Mon, 12/20/10, vikram austin...@yahoo.com wrote:

 From: vikram austin...@yahoo.com
 Subject: [Gambas-user] Displaying the same form n times
 To: austin...@yahoo.com
 Date: Monday, December 20, 2010, 6:52 AM

 PUBLIC SUB Button1_Click()

  DIM count AS Integer
  dim hForm as IPinput
  ascount = txtAScount.Text        'Point 1  '''never use underscore
 in names and str to int is automatic

  FOR count = 1 TO ascount
    hForm = New IPinput
    hForm.show

  NEXT
 END



 in IP Input form add :

 STATIC PUBLIC aIP as NEW STRING[]



 PUBLIC SUB Button_Clic()

 IPInput.aIP.Add(txtInput.Text)

 END










 2010/12/20 vikram austin...@yahoo.com:
 Hi,

 I have two forms in my application, the first one asks how many Application 
 Servers to configure, and then displays second one(IP input dialog) for each 
 Application Server. For example if there are 5 Application Server, the IP 
 input
  dialog is displayed 5 times.

 I was thinking of calling the IP input dialog from a FOR loop within the 
 first form,

 PUBLIC SUB Button1_Click()

   DIM count AS Integer

   ascount = CInt(txt_AScount.Text)        'Point 1

   FOR count = 1 TO ascount
     IPinput.show

   NEXT
 END

 There are two things I am unsure of here:
 1.the number of IP Addresses to be entered is to decided at runtime, I was 
 thinking of storing all IP Addresses entered via the IP input dialog into a 
 String array. But there is no
  way of deciding what the size of the string array should be till Point 
 1(marked in code), and it is not possible syntactically to define an array 
 at that point in code.
 2.The FOR loop for displaying the IP input dialog is not displaying the form
  ascount times. It only displays it once.

 This probably not as complex as it seems, but i am stuck at this point 
 trying to find a solution to this :( I am attaching a sample project with 
 this mail for your reference.

 Any help would be greatly appreciated.

 Thanks in advance,
 Vikram




 --
 Lotusphere 2011
 Register now for Lotusphere 2011 and learn how
 to connect the dots, take your collaborative environment
 to the next level, and enter the era of Social Business.
 http://p.sf.net/sfu/lotusphere-d2d
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user





 --
 Fabien Bodard







 --
 Lotusphere 2011
 Register now for Lotusphere 2011 and learn how
 to connect the dots, take your collaborative environment
 to the next level, and enter the era of Social Business.
 http://p.sf.net/sfu/lotusphere-d2d
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user




-- 
Fabien Bodard

--
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user