Registrations are now open. Join us today!
There is still a lot of work to do on the wiki yet! More information about editing can be found here.
Already have an account?

Microsoft KB Archive/102069

From BetaArchive Wiki

Article ID: 102069

Article Last Modified on 10/28/2003


  • Microsoft Visual Basic 3.0 Professional Edition
  • Microsoft Visual Basic 3.0 Professional Edition

This article was previously published under Q102069


When you use a variable named ClientLeft, ClientTop, ClientWidth, or ClientHeight without explicitly defining the variable with Dim or Global, Visual Basic incorrectly generates the error "Out of memory - insufficient variable space," error code 3761.


Define the variable using Dim or Global. For example:

Dim ClientLeft As Single


Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. This problem has been corrected in Visual Basic version 4.0.


Steps to Reproduce Problem

Sub Form_Click ()
    ' any of the following statements cause the error
    Print ClientLeft
    Print ClientTop
    Print ClientWidth
    Print ClientHeight
End Sub

Additional query words: buglist3.00 buglist3.00 fixlist4.00

Keywords: kbbug kbfix KB102069