Microsoft KB Archive/40189

= SADD Function Will Not Accept Concatenated or Quoted Strings =

Article ID: 40189

Article Last Modified on 11/21/2006

-

APPLIES TO


 * Microsoft QuickBasic 4.0
 * Microsoft QuickBASIC 4.0b
 * Microsoft QuickBasic 4.5 for MS-DOS
 * Microsoft BASIC Professional Development System 7.0

-



This article was previously published under Q40189



SUMMARY
The SADD (String ADDress) function will not accept a concatenation of strings or a quoted literal string as a parameter. The only valid argument for the SADD function is a single, variable-length string variable.

This information applies to Microsoft QuickBasic Versions 4.00, 4.00b, and 4.50, Microsoft Basic Compiler Versions 6.00 and 6.00b, and Microsoft Basic PDS Version 7.00 for MS-DOS and MS OS/2.



MORE INFORMATION
Under versions of QuickBasic earlier than Version 4.00, the SADD function accepts an argument that is a quoted literal string or a concatenation of strings. This behavior returns the address of the temporary storage location for the string. This is no longer allowed in QuickBasic Version 4.00 or later.

The following is a code example: c$ = &quot;This program compiles and runs&quot; b$ = &quot; under Microsoft QuickBasic 3.00&quot; PRINT c$ + b$ PRINT SADD(c$ + b$)

Additional query words: QuickBas BasicCom

Keywords: KB40189

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.