PDS 7.00 Alert FUNCTION Return Value Description Incorrect (51415)



The information in this article applies to:

  • Microsoft Basic Professional Development System for MS-DOS 7.0
  • Microsoft Basic Professional Development System for MS-DOS 7.1

This article was previously published under Q51415

SUMMARY

The Alert FUNCTION in the WINDOW.BAS file of the User Interface (UI) Toolbox is incorrectly described in the documentation. On Page 553 of the "Microsoft Basic 7.0: Language Reference" manual (for 7.00 and 7.10), the "Syntax" section incorrectly shows that the Alert FUNCTION will return a string. The "Remarks" section and the source code in WINDOW.BAS correctly show that the Alert FUNCTION actually returns an INTEGER from 1 to 3.

MORE INFORMATION

The "Syntax" section of the Alert FUNCTION description reads as follows:
   Syntax   variablename$ = Alert(style%,text$,row1%,...etc.
				
It should read as follows:
   Syntax   variablename% = Alert(style%,text$,row1%,...etc.
				
The dollar sign ($) appended to "variablename" should be a percent sign (%) because the Alert FUNCTION returns an integer.

Modification Type:MinorLast Reviewed:8/16/2005
Keywords:KB51415