VT Miscellaneous

From TeamDeveloperWiki

Jump to: navigation, search

This page covers miscellaneous VisualToolchest tips & tricks.

Contents


Image:Pointer.pngHow to change the tab order at runtime

Normally the tab order on a window is determined by the sequence of the objects in the outline.
If you would like to change the tab order at runtime, use this:

   Set bOk = VisWinSetTabOrder( hWnd, hWndInsertAfter )

This function is located in vtwin.apl.


Image:Pointer.pngHow to get the value of environment variables

Use this function to get the value of environment variables.

   sEnvString = VisDosGetEnvString( sKeyName )

This function is located in vtdos.apl.

Example of KeyNames are : PATH, TEMP, COMPUTERNAME etc.
(use the SET commando in a DOSBOX to enumerate all environment variables currently used in the session).

To set an environment variable from TD, See How to set the value of environment variables

Personal tools