Bug 94526 - IDE (Integrated Development Environment) Handling of case in variable names
Summary: IDE (Integrated Development Environment) Handling of case in variable names
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: BASIC (show other bugs)
(earliest affected)
Inherited From OOo
Hardware: Other All
: medium enhancement
Assignee: Not Assigned
QA Contact:
Depends on:
Reported: 2015-09-26 10:23 UTC by Óvári
Modified: 2015-09-28 06:42 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Note You need to log in before you can comment on or make changes to this bug.
Description Óvári 2015-09-26 10:23:16 UTC
[https://help.libreoffice.org/Basic/Using_Variables#Naming_Conventions_for_Variable_Identifiers Naming Conventions for Variable Identifiers] states that “In LibreOffice Basic variable identifiers are not case-sensitive”. LibreOffice Basic should remain as not case-sensitive.

Once a variable is defined (eg with Dim statement), typing the variable later in the code will automatically change to the variable case defined in the Dim statement.

   Having the statement:
     Dim myIntegerVariable As Integer
   And typing the following line
     myintegervariable = myintegervariable + 5
   Would change to
     myIntegerVariable = myIntegerVariable + 5

If the variable case is changed in the Dim statement, all references to the variable in the code should automatically update.

   In example shown above, if the Dim statement is changed to:
     Dim MYiNTEGERvARIABLE As Integer
   the statements with that variable will automatically refactor:
Comment 1 Cor Nouws 2015-09-26 11:23:43 UTC