0

I am working on a multiple-device application in Embarcadero Delphi XE7. Being new to delphi I would like to know how (if possible) can I rename a Form's Name. e.g. TForm3 to something like frmCustomer.

Mxaza
  • 474
  • 5
  • 12
  • 8
    from the Object Inspector - Form - Name? – RBA Jan 12 '15 at 13:15
  • Yes RBA, in the Object Inspector I can change the File Name but the Form Name is read-only. – Mxaza Jan 12 '15 at 13:52
  • At design time all the properties of the form can be edited. – RBA Jan 12 '15 at 13:57
  • Thank you RBA, indeed when in code view Form Name is read only. But when in Design is it editable. – Mxaza Jan 12 '15 at 14:01
  • Given how basic a question this is, you will most likely have more of them. To that end, this may be helpful for you : http://stackoverflow.com/questions/21403628/how-can-i-search-for-delphi-documentation – J... Jan 12 '15 at 15:53

2 Answers2

2

You can change it from the Delphi Object Inspector - official documentation on how to customize the main form of an application.

RBA
  • 12,337
  • 16
  • 79
  • 126
0

You got me a bit confused. You want to rename a class name (TForm3) to frmCustomer. A defacto standard is to prefix all classes with a "T", like TfrmCustomer. Never have a class named frmCustomer, use that for the instance instead (here form3 -> frmCustomer). Generally it's a very good idea to be strict about renaming all controls. Makes things a whole lot easier to maintain.

I prefer to use the built in refactoring (shift-ctrl-e) while having the cursor stand in the """thing" you want renamed, e.g. TForm3. That way the name, that be a class, method or attribute, is changed throughout the project.

I can furthermore recommend you install GExperts which, among many good features, have one to name the components while you place them.