PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
New WEBDEV 25 feature!
  • Events run when changing the internal page
  • Limitations
  • Property...SourcePage
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
ChangeSourcePage (Function)
In french: ChangePageSource
AjaxNot available
Dynamically changes the page displayed in an Internal Page control. During this modification, parameters can be passed to the new internal page.
Example
// Load IPAGE_InternalPage
// in the Internal Page control IPAGE_InternalPageControl
ChangeSourcePage(IPAGE_InternalPageControl, IPAGE_InternalPage)
Syntax
ChangeSourcePage(<Internal Page control> , <Internal page> [, <Parameter 1> [... [, <Parameter N>]]])
<Internal Page control>: Control name
Name of the Internal Page control that will be modified.
<Internal page>: Name of internal page
Name of the internal page that will be associated with the Internal Page control.
<Parameter 1>: Type corresponding to the parameter (optional)
First parameter that will be passed to the internal page.
<Parameter N>: Type corresponding to the parameter (optional)
Nth parameter that will be passed to the internal page.
Remarks

Events run when changing the internal page

The following events are run when ChangeSourcePage is used:
  • "Before unloading the internal page". This event is associated with Internal Page control.
  • "Closing" of the previous internal window.
  • "Global declarations" of the new internal page.
  • "Initializing", for the controls in the new internal page.
  • "Initializing" of the internal page.
  • "After loading the internal page". This event is associated with Internal Page control.

Limitations

  • The names and the parameters of the functions called must be identical.
  • If a control of the internal page is used directly from outside, there must be a control with the same name in the new internal window.
  • The values of global variables for the previous internal page are lost.

Property...SourcePage

..SourcePage is used to find out the name of the internal page currently displayed in an Internal Page control.
Business / GUI classification : GUI Code
Component : wd250page.dll
Minimum version required
  • Version 25
Comments
Click [Add] to post a comment