"Method Not Applicable..." with IsHidden Method in VB

ID Number: Q73154

1.00

WINDOWS

Summary:

Using the word "IsHidden" as the name for a variable, Sub, Function,

or object incorrectly gives the following error at run time in Visual

Basic:

Method not applicable with this Object

To work around this problem, avoid using the name "IsHidden".

This information applies to Microsoft Visual Basic programming system

version 1.0 for Windows.

More Information:

Steps to Reproduce Problem

--------------------------

1. Within any event procedure, try the following:

Sub Form_Click()

print ishidden

End Sub

2. This gives a syntax error asking you to add a "(" to the method,

so continue by adding "()":

Sub Form_Click()

print ishidden()

End Sub

3. This results in the following format after pressing ENTER after

ishidden():

Sub Form_Click()

Print IsHidden()

Sub End

This is the format for a predefined method called IsHidden().

After following the steps above, you will receive a run-time error

"Method not applicable with this Object."

Microsoft will consider completely removing this behavior of the

IsHidden name in a future version of Visual Basic.

Additional reference words: 1.00