The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
		
			|  | 
			
		
			|  | 
				
					| Passing variables from one form to another  Posted: 11 May 10 1:35 PM
 |  
					| Hi, 
 I am calling the "Schedule Meeting" form from another form called "Sales" using this code:
 
 Application.BasicFunctions.DoInvoke "Function", "Schedule:Meeting"
 
 On the "Sales" form, I have some common fields that I want to pass the "Schedule Meeting" form.
 
 How can I for example pass the "Duration" field value from my "Sales" form to the "Duration" field value in the "Schedule Meeting" form?
 
 Any help would be appreciated.
 
 Thanks
 |  
					|  |  | 
			|  |  | 
			|  | 
				
					| Re: Passing variables from one form to another  Posted: 12 May 10 11:17 AM
 |  
					| Or invoke the form as a main view - then you get a handle to the form which you can use to pass info from one to another. Feels a bit 'tighter' than using GVs to me ... |  
					|  |  | 
			|  |  | 
			|  | 
				
					| Re: Passing variables from one form to another  Posted: 17 May 10 4:22 AM
 |  
					| Hi Amer, 
 If "Schedule meeting" form is customizable, Try the following code on Schedule meeting form:
 
 Dim  Salesfrm
 Set Salesfrm= Application.Forms("System( Family ): Sales (Form name)")
 Schedulemeeting_Duration = Salesfrm.Durationfield.text
 Set Salesfrm= nothing
 
 
 The code explains:
 
 From the Schedulemeeting form, You are calling the sales form and accessing its duration field value.
 |  
					|  |  | 
			|  |