[Gambas-user] Warning: Class name hidden by local declaration: key
    Demosthenes Koptsis 
    demosthenesk at gmail.com
       
    Tue Aug  1 13:24:30 CEST 2023
    
    
  
i wrote a demo code for Action property as follows...
i have a Form with a Menu and a Button for "save" Action
------------------------------------------------------------
' Gambas class file
Public Sub Form_Open()
  Me.Center
  Menu1.Action = "save"
  Button1.Action = "save"
End
Public Sub Action_Activate(key As String) As Boolean
  Select Case key
  Case "save"
  ' call save sub at here
   Print "save to a file."
  End Select
End
------------------------------------------------------------
i get a warning at line 9, Public Sub Action_Activate(key As String) As 
Boolean
Class name hidden by local declaration: key
What does this mean ?
    
    
More information about the User
mailing list