FIX: Error When Assigning a Text String to a TextBox

ID: Q180786


The information in this article applies to:


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 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 kbWinCE kbWinCE100 kbGrpVB 
Version           : WINDOWS:1.0
Platform          : WINDOWS 
Issue type        : kbbug 

Last Reviewed: February 25, 1999