sc_change_connection("Old_Connection", "New_Connection")
|
|
This macro dynamically change the application connections.
Ex. 1: To change the connections: sc_change_connection ( "Old_Connection", "New_Connection"; "Old_Connection02", "New_Connection02");
Allows to change more then one application/connection in one command. Multiple connections can be passed as parameters that must be separated by ";" (semicolon).
Ex. 2: To use variables or change the main connection as follows: sc_change_connection ([Global_Connetion], [Test_Connection]);
Ex. 3: To delete the exchange: sc_reset_change_connection ();
The exchanges take effect in the following applications
|
Macro Scope
|
Blank application
|
calendar application
|
chart application
|
Grid application
|
Search application
|
Form application
|
Control Form
|
Menu application
|
Tree menu
|
ReportPDF application
|
allMacros onExecute
|
allMacros onInit onLoadAll
|
allMacros onHeader onInit
|
allMacros onApplicationInit onInit
|
allMacros
|
allMacros onInit onLoadAll onRecord
|
allMacros onInit onLoadAll
|
allMacros
|
allMacros
|
allMacros onHeader onInit onRecord
|
|