Remove icon

Functions of type eRemoveFunction work on one source line at a time. They remove legacy or generated lines from the source code. The function returns True when a line should be removed.


RemoveOldStudioMarkers

Removes the code markers that old versions of the Studio added, such as '//AB-Store'.

This includes the //AB/ line prefix, and the //AB-StoreStart and //AB-StoreEnd markers that the old Studio wrote around the code it generated.

Example: //AB/ Object -> Object; a //AB-StoreStart and //AB-StoreEnd pair is removed, and the code between them is kept.

Group: Tidy Up


RemoveProjectObjectStructure

Removes the old Studio 'Project Object Structure' blocks, with their Register_Object lines, at the top of files such as views.

WebApp files (*.wo) are not changed.

Example: the // Project Object Structure comment block and the Register_Object lines it names are removed together; everything else in the file stays.

Only the Register_Object lines for the objects named in that block are removed. A Register_Object line for any other object is kept, so a file that registers objects for its own reasons keeps them.

Group: Tidy Up


RemoveStudioGeneratedComments

Removes comment lines that old versions of the Studio generated.

Examples:

// fires when the button is clicked

//OnChange is called on every changed character

// Visual DataFlex xx.x Client Size Adjuster

// Visual DataFlex xx.x Migration Utility

...and so on

Only lines that contain nothing but a comment are removed. A comment at the end of a line of code is never removed, because the code would be removed with it.

Lines that contain //AB are not changed. Those are the old Studio markers, which RemoveOldStudioMarkers removes.

Group: Tidy Up


RemoveTypefaceLine

Removes 'Set Typeface to "<font>"' lines for the font named in the function's parameter. These lines set a font for a single control, which modern themes replace.

Enter * as the parameter to remove every Set Typeface line, whatever the font.

The whole line must be a Set Typeface line. Spaces and both kinds of quotes are ignored when lines are compared. A line where Set Typeface is commented out, or is part of a one-line If statement, is not changed, because removing the whole line would change what the code does.

Example: Set Typeface to "MS Sans Serif" is removed, and so is Set Typeface to 'MS Sans Serif'.

This function was previously named RemoveSansSerif and only removed that font. It was changed in 2026, so if you saved a selection with the old name, you need to select the function again.

Group: Tidy Up

Parameter: "ANY"

Default: MS Sans Serif

The font name whose 'Set Typeface to "..."' lines are removed - matched case- and whitespace-insensitively, either quote style.

Defaults to "MS Sans Serif", the classic legacy Windows font. Enter * to remove every Set Typeface line, whatever the font.