Recent

Author Topic: Renaming controls  (Read 1787 times)

Groffy

  • Full Member
  • ***
  • Posts: 204
Renaming controls
« on: May 29, 2015, 08:49:12 am »
Normally its not possible to define variables with the same name a control in the same unit already has. The compiler complains with a "Duplicate identifier ..." If you then rename the control, every occurance of the control name inside the unit will be changed, even in comment lines AND the variable with formerly the same name will be renamed as well !! Is that the wanted/designed behaviour??

Best regards - Ulrich

Linux Mint / Windows 10 / Lazarus 3.0.0 / trunk -qt

Leledumbo

  • Hero Member
  • *****
  • Posts: 8746
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Renaming controls
« Reply #1 on: May 29, 2015, 09:41:05 am »
Is that the wanted/designed behaviour??
AFAIK yes

 

TinyPortal © 2005-2018