[Gambas-user] WebTree shows "Class name hidden by local declaration" on compiling
T Lee Davidson
t.lee.davidson at gmail.com
Sun Apr 24 17:57:05 CEST 2022
On 4/24/22 11:29, Bruce Steers wrote:
> You can use parentheses to make the name Key local to the method
> Ie...
>
> Private sColl As Collection
>
> Public Sub WebTree1_Data((Key) As String, Column As Integer, Data As WebTreeData)
>
> If Column = 1 Then
> Data.Html = sColl[Key]
> Endif
>
> End
You could also simply use a different parameter name if the warning bothers you, eg. :
Public Sub WebTree1_Data(Index As String, Column As Integer, Data As WebTreeData)
--
Lee
More information about the User
mailing list