pass form data

This forum can be browsed by the general public. Posting is limited to current SAPIEN license holders with active maintenance and does not offer a response time guarantee.
Forum rules
DO NOT POST LICENSE NUMBERS, ACTIVATION KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM.
Only the original author and our tech personnel can reply to a topic that is created in this forum. If you find a topic that relates to an issue you are having, please create a new topic and reference the other in your post.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
This topic is 5 years and 4 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Filters
Posts: 5
Last visit: Fri Feb 14, 2020 12:43 am

pass form data

Post by Filters »

Hi I'm new to powershell and stuck with a little problem with data sending from mainform to childform
No data is showed in child form :( and version is 2018
Main Form

Code: Select all

$MainForm_Load={
$textbox1.Text = 'bla bla bla'}

$buttonCallChildForm_Click={
	if((Show-ChildForm_psf) -eq 'OK'){$textbox1.Text = $ChildForm_textbox1}
}
ChildForm

Code: Select all

$formChildForm_Load={
	#TODO: Initialize Form Controls here
}
User avatar
davidc
Posts: 5913
Last visit: Mon Jul 08, 2019 8:55 am
Been upvoted: 2 times

Re: pass form data

Post by davidc »

The following article demonstrates how to pass values to child forms:

https://info.sapien.com/index.php/guis/gui-scripting/powershell-studio-passing-and-returning-values-using-forms

Note: The Call verb has since been replaced with Show and Invoke verbs.

Please let us know if you have any further questions.
David
SAPIEN Technologies, Inc.
This topic is 5 years and 4 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.