This allows you use the file’s reference function to execute it: Call-MyScript_ps1 If you need to call a ps1 file you will have to set the following project file’s properties in the Project Panel as follows: Propertyīy setting the CommandExtension property to False, you are telling the project to treat the ps1 file as a function. A file’s Reference Function uses the following naming convention: Call-_įor example, to call the AddExtension.pff file in the sample project, you would use the following reference function: Call-AddEmployeeForm_pff To do this, you must use the Form’s Reference Function. Once you have a project with a form, you can call the form from the Startup.pfs or from another form. At the end of this article there is a link to download a sample project that demonstrates how to use these techniques.Ĭalling Forms in a Project (Reference Functions) The Multi-Form Project template is a good starting point. You will need to create a project with multiple forms in order to proceed. In this article, we will answer these common questions in order to give you a better understanding about how to use projects with multiple forms. Two frequent questions we get on the forums are:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |