Microsoft KB Archive/180786

{|
 * width="100%"|

FIX: Error When Assigning a Text String to a TextBox

 * }

Q180786

-

The information in this article applies to:


 * Microsoft Windows CE Toolkit for Visual Basic 5.0, version 1.0

-

SYMPTOMS
If the assignment operator ("=") is left out when assigning a string to the Text property of a textbox, the following Application Error can occur when run within the emulator:

The instruction at "0x0027dcc0" referenced memory at "0x00000000". The memory could not be "written".

When run on the device, the command does not function but there is no error generated.

CAUSE
The syntax error is not encountered until run-time.

RESOLUTION
Ensure that the assignment operator is included when assigning a string to the Text property of a textbox, as shown here:

Text1.Text = "Hello World"

instead of:

Text1.Text "Hello World"  'Causes the Error!

STATUS
Microsoft has confirmed this to be a problem in the Microsoft products that are listed at the beginning of this article.

This problem was corrected in Windows CE Toolkit for Visual Basic 6.0.

(c) Microsoft Corporation 1999, All Rights Reserved. Contributions by Mike Dixon, Microsoft Corporation.

Additional query words: Syntax Checking vbce vbce5 vbce6

Keywords : kbToolkit kbVBp kbVBp500bug kbVBp600fix kbOSWinCEsearch kbOSWinCE100 kbGrpDSVB

Issue type : kbbug

Technology : kbVBSearch kbAudDeveloper kbWinCETKVBSearch kbWinCESearch kbWinCETK100VB500