[Gambas-user] What does this mean?

Benoit Minisini gambas at ...1...
Wed Aug 9 19:59:38 CEST 2006


On Wednesday 09 August 2006 19:34, Ron Onstenk wrote:
> PUBLIC SUB cmbReplace_Activate()
>
>   IF Action["replace"].Visible THEN
>     {Replace}
>   ELSE
>     ReplaceAll
>   ENDIF
>
> END
>
> The {Replace} puzzles me.
>
> Ron

Really? Nevertheless, it is exactly the same syntax in VB. ;-)

The { } just tells the compiler not to try to interpret the identifier as a 
subroutine name, a reserved keyword, or god knows what. By using { }, I am 
sure that 'Replace' will be interpreted as a function name in that case.

Regards,

-- 
Benoit Minisini





More information about the User mailing list