Python Script
Python script function supports even the most complex data manipulations on a label or a form.
Tip
When compared with VBScript, it proves to be a more suitable option for 64-bit systems. It is also proved to be a notably faster scripting alternative.
About group identifies the function.
-
Name: function ID, initially defined by the function type.
-
Description: function's purpose and role as defined by the user.
-
Function type: show which type of scripting is selected.
Python Script
-
Insert data source: inserts an existing or a newly created data source into the script.
-
Verify: validates the entered script syntax.
-
Script editor: opens the editor which makes scripting easier and more efficient.
Example 40. Example:
The variable NAME provides the first and last name of a person. Python Script function should break the names apart and use only the first name as the result of the function.
NAME variable initial value: John Doe
name = NAME.Value Spc = name.find(' ') if name != '' and Spc != -1: Result.Value = name[0:Spc] else: Result.Value = name
Result of Python script: John