Link Search Menu Expand Document

changeProfile

Explanation In most cases, Biz / Browser can run CRS programs created for previous versions out of the box. However, some functions have been changed or deleted from the specifications due to version transition.
Immediately after installation, the function that supports past versions is disabled, but by executing the changeProfile function to switch profiles, some of the changed or deleted specifications can be returned to the conventional specifications. In many cases, switching profiles allows you to run the latest version without changing the program.
Call format changeProfile (profile)
Return value None
Arguments String profile Specify the profile name to select.
If you specify the empty string "", the default settings at the time of installation are restored. You can also specify the following values.
The following functions are affected by changing the profile.
Function Profile
3.0.0 3.1.0 4.0.0 4.1.0
Background color at startup Light blue Light blue Dark blue Gray
Use of CatchEvent and PeekEvent statements Valid Valid Invalid Invalid
Use of Event and From symbols in event handlers Valid Valid Invalid Invalid
Substitution of class name for ver2.0 (Replace Record which is a child of Spread with SpreadRow, etc.) Valid Valid Invalid Invalid
Ability to reference the Object.className property as an Object.class Valid Valid Invalid Invalid
Using the index property of the array definition object Valid Valid Invalid Invalid
Using the length property of an array element object Valid Valid Invalid Invalid
Enable Vertical Align of Label on the screen Invalid Valid Valid Valid
Ability to raise an exception when Spread.value is set to a value greater than the actual number of rows Invalid Invalid Valid Valid
A function that raises an exception when a value other than the specifiable value is set for Spread.ColumnPosition Invalid Invalid Valid Valid
Ability to raise an exception when setting values ​​for TabFrom.Width and TabForm.Height Invalid Invalid Valid Valid

Also, from ver4.0.6, the following functions have been affected in order to improve compatibility when printing with ver3.0. When changeProfile ("3.0.0") or changeProfile ("3.1.0") is executed, the print result will be close to ver3.x. However, it does not affect the print result of the PrintStream package.
In the form printing of ver3.x, the line feed position may change due to the fluctuation of the character spacing depending on the printer and preview environment due to the problem of internal accuracy, but this problem is also solved in ver4.0 by specifying changeProfile. It works in the same way as ver3.x including it (printing accuracy is reduced). When the form printing of ver4.0 and the form printing of ver3.x are mixed, please be careful to switch the profile appropriately.

Function Profile
3.0.0 3.1.0 4.0.0 4.1.0
Internal accuracy of font size integer integer Floating point Floating point
Reference resolution used to calculate the layout of the character string 90 DPI 90 DPI 96 DPI 96 DPI
If you specify a character string other than the above for profile, the profile will not be changed.
Exception None
Example of use
changeProfile ("4.0.0");
Related item