[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bad variable names in events


Le 21/11/2026 à 22:59, Bruce Steers a écrit :

A fair number of events have bad variable names.

For example i just right clicked a Workspace object and selected the Close event to use it.

It entered the following into the editor...

Public Sub Workspace1_Close(Window As Window)


End

Now i get ths warning..
Warning, class name hidden by local declaration: Window

Also there is ...
TreeView1_Draw(X As Integer, Y As Integer, Width As Integer, Height As Integer, Key As String, Column As Integer)

That complains about "Key"

Mind if i submit a merge that changes all the name conflicts like that I can find ?

Respects
BruceS

No, because I would prefer a better solution that I have not found yet.

In the meanwhile, you have to put the offending function arguments between brackets to prevent the compiler warnings.

Sorry for the inconvenience!

--
Benoît Minisini.


References:
Bad variable names in eventsBruce Steers <bsteers4@xxxxxxxxx>