VT Miscellaneous

From Team Developer SqlWindows Wiki
Jump to: navigation, search

Visual Toolchest miscellaneous


Contents


Pointer2.png How to change the tab order at runtime Pointer.png

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.


Pointer2.png How to get the value of environment variables Pointer.png

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:

MediaWikiLink.png How to set the value of environment variables