PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

  • Running the Expand/Collapse process
  • Calling a global component procedure
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
ExecuteProcess (Function)
In French: ExécuteTraitement
Starts the execution of a process by programming (which means without any particular action performed by the user). The process run can be:
  • a process of a control (found in a window, page or report),
  • a process of a menu option,
  • a process of a report block,
  • a process of a window,
  • a process of a page,
  • a process of a report,
  • a process of a procedure.
    Versions 17 and later
    Note: To trigger the execution of a procedure by the main application thread, use ExecuteMainThread.
    New in version 17
    Note: To trigger the execution of a procedure by the main application thread, use ExecuteMainThread.
    Note: To trigger the execution of a procedure by the main application thread, use ExecuteMainThread.
WEBDEV - Server codeWEBDEV - Browser codePHP The process run can only be a process belonging to a page control, a page or a procedure. Called in server code, only the server process of the element is run. Called in browser code, the browser code and server code of the element are run.
AndroidAndroid Widget Java The process run can be a process belonging to a window control, a menu option, a window or a procedure.
Versions 16 and later
Universal Windows 10 App In Windows Phone, the process run can be a process belonging to a window control, a window or a procedure.
New in version 16
Universal Windows 10 App In Windows Phone, the process run can be a process belonging to a window control, a window or a procedure.
Universal Windows 10 App In Windows Phone, the process run can be a process belonging to a window control, a window or a procedure.
Versions 15 and later
Android This function is now available for the Android applications.
New in version 15
Android This function is now available for the Android applications.
Android This function is now available for the Android applications.
Versions 16 and later
Universal Windows 10 App This function is now available for the Windows Phone applications.
New in version 16
Universal Windows 10 App This function is now available for the Windows Phone applications.
Universal Windows 10 App This function is now available for the Windows Phone applications.
Versions 17 and later
iPhone/iPad This function is now available for the iPhone/iPad applications.
New in version 17
iPhone/iPad This function is now available for the iPhone/iPad applications.
iPhone/iPad This function is now available for the iPhone/iPad applications.
Versions 18 and later
Android Widget This function is now available in Android Widget mode.
Universal Windows 10 App This function is now available in Windows Store apps mode.
New in version 18
Android Widget This function is now available in Android Widget mode.
Universal Windows 10 App This function is now available in Windows Store apps mode.
Android Widget This function is now available in Android Widget mode.
Universal Windows 10 App This function is now available in Windows Store apps mode.
Versions 21 and later
Apple Watch This function is now available in Apple Watch mode.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
New in version 21
Apple Watch This function is now available in Apple Watch mode.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Apple Watch This function is now available in Apple Watch mode.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Example
// Runs the click code on a button
ExecuteProcess(BTN_Save, trtClick)
// Runs a local procedure (test) that belongs
// to another opened window/page (menu)
ExecuteProcess(Menu.Test, trtProcedure)
// Runs the ReadFile procedure
// and passes the file name in parameter
ExecuteProcess(ReadFile, trtProcedure, FileName)
Syntax

Running the process of a control Hide the details

ExecuteProcess(<Control Name> , <Process>)
<Control Name>: Character string (with or without quotes)
Name of control (or menu option) associated with the process to run. For an option in a popup menu, use the following notation: <Name of popup menu>.<Option name>.
<Process>: Integer constant
Control of a window: Process to run among the available processes of controls (not the ones available with the event bar).
Versions 22 and later
trtAction
New in version 22
trtAction
trtAction
Action code of Web Component control. This code is available in server code and in browser code.
WINDEVAndroidAndroid Widget iPhone/iPadApple WatchWindows MobileUniversal Windows 10 AppJava This constant is not available.
Versions 22 and later
trtValueAssignment
New in version 22
trtValueAssignment
trtValueAssignment
Code for assigning the Value property of Web Component control. This code is available in browser code only.
WINDEVAndroidAndroid Widget iPhone/iPadApple WatchWindows MobileUniversal Windows 10 AppJava This constant is not available.
trtLineDisplayCode used to display a row (Table control only).
WEBDEV - Browser codeiPhone/iPadApple WatchUniversal Windows 10 App This constant is not available.
Versions 20 and later
trtAddWidget
New in version 20
trtAddWidget
trtAddWidget
Code for adding a widget to a Dashboard control.
AndroidAndroid Widget iPhone/iPadApple WatchWindows MobileUniversal Windows 10 AppJava This constant is not available.
iPhone/iPadApple WatchWindows MobileUniversal Windows 10 AppJava This constant is not available.
Versions 23 and later
trtAfterOpeningDocument
New in version 23
trtAfterOpeningDocument
trtAfterOpeningDocument
"After opening document" code of Word Processing control, Image Editor control, Spreadsheet control or PDF Reader control.
WEBDEV - Server codeWEBDEV - Browser codeAndroidAndroid Widget iPhone/iPadApple WatchWindows MobileUniversal Windows 10 AppJava This constant is not available.
Versions 15 and later
trtBeforeCreatingOrganizerApt
New in version 15
trtBeforeCreatingOrganizerApt
trtBeforeCreatingOrganizerApt
"Before creating the appointment" code of Organizer control.
AndroidAndroid Widget iPhone/iPadApple WatchWindows MobileUniversal Windows 10 AppJava This constant is not available.
Versions 16 and later
trtBeforeCreatingScheduleApt
New in version 16
trtBeforeCreatingScheduleApt
trtBeforeCreatingScheduleApt
"Before creating the appointment" code of Scheduler control.
AndroidAndroid Widget Apple WatchWindows MobileUniversal Windows 10 AppJava This constant is not available.
Apple WatchWindows MobileUniversal Windows 10 AppJava This constant is not available.
Versions 23 and later
trtBeforeClosingDocument
New in version 23
trtBeforeClosingDocument
trtBeforeClosingDocument
"Before closing document" code of Word Processing control, Image Editor control, Spreadsheet control or PDF Reader control.
WEBDEV - Server codeWEBDEV - Browser codeAndroidAndroid Widget iPhone/iPadApple WatchWindows MobileUniversal Windows 10 AppJava This constant is not available.
Versions 15 and later
trtChangeOrganizerPeriod
New in version 15
trtChangeOrganizerPeriod
trtChangeOrganizerPeriod
"Whenever changing period" code of Organizer control.
AndroidAndroid Widget iPhone/iPadApple WatchWindows MobileUniversal Windows 10 AppJava This constant is not available.
Versions 16 and later
trtChangeSchedulePeriod
New in version 16
trtChangeSchedulePeriod
trtChangeSchedulePeriod
"Whenever changing period" code of Scheduler control.
Android Widget Apple WatchWindows MobileUniversal Windows 10 AppJava This constant is not available.
Versions 22 and later
trtChangePlane
New in version 22
trtChangePlane
trtChangePlane
"Whenever changing plane" code of Scrolling Banner control.
WINDEVAndroidAndroid Widget iPhone/iPadApple WatchWindows MobileUniversal Windows 10 AppJava This constant is not available.
Versions 20 and later
trtChangePositionMap
New in version 20
trtChangePositionMap
trtChangePositionMap
"Whenever changing position" code of Map control.
Versions 20 and later
trtResizeWidget
New in version 20
trtResizeWidget
trtResizeWidget
"Resizing a Widget" code of Dashboard control.
iPhone/iPadApple WatchWindows MobileUniversal Windows 10 App This constant is not available.
Versions 22 and later
trtDdelayedPlaneLoad
New in version 22
trtDdelayedPlaneLoad
trtDdelayedPlaneLoad
"Delayed plane load" code of a plane.
WINDEVAndroidAndroid Widget iPhone/iPadApple WatchWindows MobileUniversal Windows 10 AppJava This constant is not available.
trtClickClick code of control.
trtRightClickRight-click code (for the TreeView control only).
WEBDEV - Server codeWEBDEV - Browser codeiPhone/iPadApple WatchUniversal Windows 10 App This constant is not available.
Versions 22 and later
trtClickButtonArrow
New in version 22
trtClickButtonArrow
trtClickButtonArrow
Click code on the arrow associated with a button.
WEBDEV - Server codeWEBDEV - Browser codeAndroidAndroid Widget iPhone/iPadApple WatchWindows MobileWindows MobileUniversal Windows 10 AppJava This constant is not available.
Versions 15 and later
trtMoveOrganizerApt
New in version 15
trtMoveOrganizerApt
trtMoveOrganizerApt
Code for moving an appointment in an Organizer control.
AndroidAndroid Widget iPhone/iPadApple WatchWindows MobileUniversal Windows 10 AppJava This constant is not available.
Versions 16 and later
trtMoveScheduleApt
New in version 16
trtMoveScheduleApt
trtMoveScheduleApt
Code for moving an appointment in a Scheduler control.
AndroidAndroid Widget Apple WatchWindows MobileUniversal Windows 10 AppJava This constant is not available.
Apple WatchWindows MobileUniversal Windows 10 AppJava This constant is not available.
Versions 20 and later
trtMoveWidget
New in version 20
trtMoveWidget
trtMoveWidget
"Moving a Widget" code of Dashboard control.
AndroidAndroid Widget iPhone/iPadApple WatchWindows MobileUniversal Windows 10 AppJava This constant is not available.
iPhone/iPadApple WatchWindows MobileUniversal Windows 10 AppJava This constant is not available.
trtDoubleClickDouble-click code.
Universal Windows 10 App This constant is not available.
trtTreeviewExpandCollapseCollapsed/Expanded code of a node in a TreeView or TreeView Table control.
Caution: This parameter requires a specific syntax. See remarks for more details.
WEBDEV - Server codeWEBDEV - Browser codeAndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppJava This constant is not available.
Versions 22 and later
trtCollapseExpandBreak
New in version 22
trtCollapseExpandBreak
trtCollapseExpandBreak
Collapsed/Expanded code of a break in a Looper or Table control.
WEBDEV - Server codeWEBDEV - Browser codeAndroidApple WatchWindows MobileUniversal Windows 10 AppJava This constant is not available.
trtEnterEntry code in the control.
trtLineEnterEntry code of a row (Table control only).
WEBDEV - Server codeWEBDEV - Browser codeAndroidAndroid Widget Apple WatchUniversal Windows 10 AppJava This constant is not available.
WEBDEV - Server codeWEBDEV - Browser codeApple WatchUniversal Windows 10 AppJava This constant is not available.
Versions 15 and later
trtEnterInputOrganizerApt
New in version 15
trtEnterInputOrganizerApt
trtEnterInputOrganizerApt
Entry code in input for an appointment in an Organizer control.
WEBDEV - Server codeAndroidAndroid Widget iPhone/iPadApple WatchWindows MobileUniversal Windows 10 AppJava This constant is not available.
Versions 16 and later
trtEnterInputSchedulerApt
New in version 16
trtEnterInputSchedulerApt
trtEnterInputSchedulerApt
Entry code in input for an appointment in a Scheduler control.
WEBDEV - Server codeAndroid Widget Apple WatchWindows MobileUniversal Windows 10 AppJava This constant is not available.
trtComboClosingClosing code of drop-down list.
WEBDEV - Server codeWEBDEV - Browser codeiPhone/iPadApple Watch This constant is not available.
trtEndInitialization"End of initialization" code (browsing List Box, Table and Combo Box control).
WEBDEV - Browser code This constant is not available.
trtEndChange"End of modification" code (Slider and Scrollbar control only).
WEBDEV - Server codeWEBDEV - Browser codeiPhone/iPadApple WatchUniversal Windows 10 App This constant is not available.
trtInitInitialization code of control.
WEBDEV - Browser code This constant is not available.
trtReadLastCode for reading the last record (Table control only)
WEBDEV - Browser codeiPhone/iPadApple WatchUniversal Windows 10 App This constant is not available.
trtReadPreviousCode for reading the previous record (Table control only).
WEBDEV - Browser codeiPhone/iPadApple WatchUniversal Windows 10 App This constant is not available.
trtReadFirstCode for reading the first record (Table control only).
WEBDEV - Browser codeiPhone/iPadApple WatchUniversal Windows 10 App This constant is not available.
trtReadNextCode for reading the next record (Table control only).
WEBDEV - Browser codeiPhone/iPadApple WatchUniversal Windows 10 App This constant is not available.
trtChange"Whenever modified" code of control.
WEBDEV - Browser code This constant is not available.
Versions 22 and later
trtModificationSpreadsheetCell
New in version 22
trtModificationSpreadsheetCell
trtModificationSpreadsheetCell
"Cell modification" code of Spreadsheet control.
WEBDEV - Server codeWEBDEV - Browser codeAndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppJava This constant is not available.
trtSliderChange"Whenever modified" code (Slider control only).
WEBDEV - Server codeWEBDEV - Browser codeAndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppJava This constant is not available.
Versions 15 and later
trtZoomModification
New in version 15
trtZoomModification
trtZoomModification
Code for modifying the zoom of a Range Slider control.
WEBDEV - Server codeWEBDEV - Browser codeAndroidAndroid Widget iPhone/iPadApple WatchWindows MobileUniversal Windows 10 AppJava This constant is not available.
trtMenuOptionCode of menu option (main or popup menu).
iPhone/iPadApple WatchUniversal Windows 10 App This constant is not available.
iPhone/iPadApple Watch This constant is not available.
trtComboOpeningCode for opening the drop-down list of Combo Box control.
WEBDEV - Server codeWEBDEV - Browser codeiPhone/iPadApple Watch This constant is not available.
Versions 23 and later
trtRefreshRibbon
New in version 23
trtRefreshRibbon
trtRefreshRibbon
Code for refreshing the ribbon of PDF Reader and Word Processing controls.
WEBDEV - Server codeWEBDEV - Browser codeAndroidAndroid Widget iPhone/iPadApple WatchWindows MobileJava This constant is not available.
Versions 16 and later
trtReassignResourceScheduleApt
New in version 16
trtReassignResourceScheduleApt
trtReassignResourceScheduleApt
Code for re-assigning an appointment in a Scheduler control.
AndroidAndroid Widget Apple WatchWindows MobileUniversal Windows 10 AppJava This constant is not available.
Apple WatchWindows MobileUniversal Windows 10 AppJava This constant is not available.
Versions 22 and later
trValueRetrieval
New in version 22
trValueRetrieval
trValueRetrieval
Code for retrieving the Value property of a Web Component control. This code is available in browser code only.
WINDEVAndroidAndroid Widget iPhone/iPadApple WatchWindows MobileUniversal Windows 10 AppJava This constant is not available.
Versions 15 and later
trtResizeOrganizerApt
New in version 15
trtResizeOrganizerApt
trtResizeOrganizerApt
Code for resizing an appointment in an Organizer control.
WEBDEV - Server codeAndroidAndroid Widget iPhone/iPadApple WatchWindows MobileUniversal Windows 10 AppJava This constant is not available.
Versions 16 and later
trtResizeScheduleApt
New in version 16
trtResizeScheduleApt
trtResizeScheduleApt
Code for resizing an appointment in a Scheduler control.
WEBDEV - Server codeAndroid Widget Apple WatchWindows MobileUniversal Windows 10 AppJava This constant is not available.
trtSelectionSelection code (Combo Box, List Box and Table control).
WEBDEV - Browser code This constant is not available.
Versions 15 and later
trtSelectOrganizerPeriod
New in version 15
trtSelectOrganizerPeriod
trtSelectOrganizerPeriod
Code for selecting a period in an Organizer control.
WEBDEV - Server codeAndroidAndroid Widget iPhone/iPadApple WatchWindows MobileUniversal Windows 10 AppJava This constant is not available.
Versions 16 and later
trtSelectSchedulePeriod
New in version 16
trtSelectSchedulePeriod
trtSelectSchedulePeriod
Code for selecting a period in a Scheduler control.
WEBDEV - Server codeAndroid Widget Apple WatchWindows MobileUniversal Windows 10 AppJava This constant is not available.
Versions 15 and later
trtSelectOrganizerApt
New in version 15
trtSelectOrganizerApt
trtSelectOrganizerApt
Code for selecting an appointment in an Organizer control.
WEBDEV - Server codeAndroidAndroid Widget iPhone/iPadApple WatchWindows MobileUniversal Windows 10 AppJava This constant is not available.
Versions 16 and later
trtSelectScheduleApt
New in version 16
trtSelectScheduleApt
trtSelectScheduleApt
Code for selecting an appointment in a Scheduler control.
WEBDEV - Server codeAndroidAndroid Widget Apple WatchWindows MobileUniversal Windows 10 AppJava This constant is not available.
WEBDEV - Server codeApple WatchWindows MobileUniversal Windows 10 AppJava This constant is not available.
trtExitExit code of control.
trtLineExitExit code of row (Table control only).
WEBDEV - Server codeWEBDEV - Browser codeiPhone/iPadApple WatchUniversal Windows 10 App This constant is not available.
Versions 15 and later
trtOrganizerInputExitApt
New in version 15
trtOrganizerInputExitApt
trtOrganizerInputExitApt
Exit code from input for an appoingment in an Organizer control.
AndroidAndroid Widget iPhone/iPadApple WatchWindows MobileUniversal Windows 10 AppJava This constant is not available.
Versions 16 and later
trtScheduleInputExitApt
New in version 16
trtScheduleInputExitApt
trtScheduleInputExitApt
Exit code from input for an appoingment in a Scheduler control.
Android Widget Apple WatchWindows MobileUniversal Windows 10 AppJava This constant is not available.
trtSpinPlusIncrement code of Spin control.
WEBDEV - Server codeWEBDEV - Browser codeiPhone/iPadApple WatchUniversal Windows 10 App This constant is not available.
trtSpinMinusDecrement code of Spin control.
WEBDEV - Server codeWEBDEV - Browser codeiPhone/iPadApple WatchUniversal Windows 10 App This constant is not available.
Versions 15 and later
trtDeleteOrganizerApt
New in version 15
trtDeleteOrganizerApt
trtDeleteOrganizerApt
Code for deleting an appointment from an Organizer control.
AndroidAndroid Widget iPhone/iPadApple WatchWindows MobileUniversal Windows 10 AppJava This constant is not available.
Versions 16 and later
trtDeleteScheduleApt
New in version 16
trtDeleteScheduleApt
trtDeleteScheduleApt
Code for deleting an appointment from a Scheduler control.
Android Widget Apple WatchWindows MobileUniversal Windows 10 AppJava This constant is not available.
Versions 20 and later
trtDeleteWidget
New in version 20
trtDeleteWidget
trtDeleteWidget
Code for deleting a widget from a Dashboard control.
AndroidAndroid Widget iPhone/iPadApple WatchWindows MobileUniversal Windows 10 AppJava This constant is not available.
iPhone/iPadApple WatchWindows MobileUniversal Windows 10 AppJava This constant is not available.
Versions 20 and later
trtPullToRefresh
New in version 20
trtPullToRefresh
trtPullToRefresh
"Refresh by pull/release" code of a Table or Looper control.
WEBDEV - Server codeWEBDEV - Browser codeJava This constant is not available.
Control or blocks of a report: Process to run among the available processes:
trtPrePrint"Pre Print" code of control or block.
WEBDEV - Browser codePHP This constant is not available.
trtPostPrint"Post Print" code of a block.
WEBDEV - Browser codePHP This constant is not available.
WINDEVReports and QueriesAndroidAndroid Widget iPhone/iPadApple WatchWindows MobileUniversal Windows 10 AppJavaUser code (UMC)

Running the process of a window Hide the details

ExecuteProcess(<Window> , <Process>)
<Window>: Character string (with or without quotes)
Name of window whose process must be run.
<Process>: Integer constant
Process to run among the processes available for the windows.
trtOpening or trtInitInitialization code of window.
trtClosingClosing code of window.
trtGetFocusCode of focus gain for the window.
Universal Windows 10 App This constant is not available.
trtKillFocusCode of focus loss for the window.
Universal Windows 10 App This constant is not available.
trtResizeCode for resizing the window.
Universal Windows 10 App This constant is not available.
trtClickCode of the button associated with the click in the window.
trtRightClickCode of button associated with the right click in the window.
Universal Windows 10 App This constant is not available.
trtDoubleClickCode of button associated with the double click in the window.
Universal Windows 10 App This constant is not available.
trtChangeModification code of window.
trtSystemButton"Before closing with OK/Close button" code.
AndroidAndroid Widget Windows Mobile This constant is available for Windows Mobile and Android only.
Versions 20 and later
trtRequestUpdate
New in version 20
trtRequestUpdate
trtRequestUpdate
Versions 22 and later
trtUpdateUI
New in version 22
trtUpdateUI
trtUpdateUI
"Request for updating the display" code.
Versions 23 and later
trtChangeLayout
New in version 23
trtChangeLayout
trtChangeLayout
"Change of layout" code.
Universal Windows 10 App This constant is not available.
WEBDEV - Server codeWEBDEV - Browser codePHPAjax

Running the process of a page Hide the details

ExecuteProcess(<Page> , <Process>)
<Page>: Character string (with or without quotes)
Name of page whose process must be run.
PHP The name of the page must be enclosed in quotes.
<Process>: Integer constant
Process to run among the processes available for the pages.
trtOpening
WEBDEV - Server code Opening code of page.
trtClosing
WEBDEV - Server code Closing code of page.
PHP This constant has no effect.
trtInit
WEBDEV - Server code Initialization code of page.
Versions 22 and later
trtChangeBlade
New in version 22
trtChangeBlade
trtChangeBlade
WEBDEV - Browser code "Whenever changing blade" code (page in Responsive Web Design mode).
trtLoad
WEBDEV - Browser code Load code of the page.
trtUnload
WEBDEV - Browser code Code for unloading the page.
Versions 22 and later
trtScroll
New in version 22
trtScroll
trtScroll
WEBDEV - Browser code "Scroll" code of page.
trtReset
WEBDEV - Browser code Code for page reset (initialized form).
trtSubmit
WEBDEV - Browser code Code for page submit (form sent).
WINDEVWEBDEV - Server codeReports and QueriesWindows MobileUser code (UMC)

Running the process of a report Hide the details

ExecuteProcess(<Report Name> , <Process>)
<Report Name>: Character string (with or without quotes)
Name of the report whose process must be run.
<Process>: Integer constant
Process to run among the processes available for the reports.
trtOpening or trtInitOpening code of the report.
trtClosingClosing code of report.
trtReadDataCode for reading the report data.
Windows Mobile This constant is not available.
trtFilterCode for filtering the report data.
Windows Mobile This constant is not available.
WINDEVWEBDEV - Server codeReports and QueriesAndroidAndroid Widget iPhone/iPadApple WatchWindows MobileUniversal Windows 10 AppJavaPHPAjaxUser code (UMC)

Running a procedure Hide the details

<Result> = ExecuteProcess(<Procedure Name>, <Process> [, <Parameter 1>, ...,  <Parameter N>])
<Result>: Any
Return value of procedure called. This value is identical to the value obtained if the procedure is run directly.
<Procedure Name>: Character string
Name of procedure to run.
WEBDEV - Server code The procedure to run corresponds to a server procedure.
<Process>: Integer constant
Procedure to run. This procedure corresponds to:
  • one of the following constants:
    trtProcedureRun the specified procedure according to the runtime context (procedure of the window, procedure of the WINDEV/WEBDEV component or procedure of the project).
    trtProjectProcedureRuns the specified procedure. This procedure is a procedure of the project that is hosting the WINDEV/WEBDEV component.
    This parameter can only be used for a WINDEV/WEBDEV component included in another project.
<Parameter 1>: Any optional type
First optional parameter that will be passed to the procedure.
<Parameter N>: Any optional type
Nth optional parameter that will be passed to the procedure.
Remarks
WINDEVWindows MobileUser code (UMC)

Running the Expand/Collapse process


For a TreeView control
The "Collapse/Expand" process of a treeview available in the code editor expects the two following parameters:
  • <Element Path>: Text variable containing the full path of the element currently collapsed or expanded. All you have to do is specify the name of a variable, this variable will be automatically initialized at run time.
  • <Collapsed>: Boolean variable, used to find out the action performed by the user (collapse = True, expand = False). All you have to do is specify the name of a variable, this variable will be automatically initialized at run time.
These two parameters must be specified when this process is run by ExecuteProcess. In this case, the following syntax must be used:
ExecuteProcess(<Name of TreeView Control>, trtTreeviewExpandCollapse, ...
<Element Path>, <Collapsed>)
For a TreeView Table control
The "Collapse/Expand" process of a treeview table in the code editor expects no parameter.
When this process is run by ExecuteProcess, the following syntax must be used:
ExecuteProcess(<Name of TreeView Table Control>, trtTreeviewExpandCollapse)
WINDEVWEBDEV - Server codeReports and QueriesWindows MobileAjaxUser code (UMC)

Calling a global component procedure

ExecuteProcess is used to call a global component procedure. To do so, use the following syntax:
ExecuteProcess(<Component>.<Set of Procedures>.<Procedure>, ...
trtProcedure)
Example:
ExecuteProcess("MyComponent.Set_WDExample.MyProcedure", trtProcedure)
In a thread started by a component, ExecuteProcess cannot be used to call a local procedure of a window of the host project.
You must use a global procedure of the host project to call the local procedure of the window.
Components
WINDEVWEBDEV - Server codeReports and Queries wd230vm.dll
Windows Mobile wp230vm.dll
WEBDEV - Browser code WDJS.DLL
Java wd230java.jar
Linux wd230vm.so
Android wd230android.jar
Minimum required version
  • Version 9
This page is also available for…
Comments
I AM MAKING IT DIRECT TO ANOTHER BOTTLE, AND PERFORMING, LIKE IT WAS A CLICK
ExecuteProcess(BTN_BOTAO2,trtClick)

// ESTOU FAZENDO ELE IR DIRETO PARA OUTRO BOTAO, E EXECUTAR, COMO SE FOSSE UM CLICK
// I AM MAKING IT DIRECT TO ANOTHER BOTTLE, AND PERFORMING, LIKE IT WAS A CLICK
// HACIENDO EL IR DIRECTO A OTRO BOTA, Y EJECUTAR, COMO SE FUE UN CLICK

// BLOG COM VIDEO E EXEMPLO

http://windevdesenvolvimento.blogspot.com.br/2017/07/aula-1198-windev-02-button-botao-ir.html

https://www.youtube.com/watch?v=m6KEcLWWsiM
De matos
Jul. 05 2017