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)
Version:
(earliest affected)
Inherited From OOo
Hardware: Other All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: BASIC-IDE
  Show dependency treegraph
 
Reported: 2015-09-26 10:23 UTC by Óvári
Modified: 2020-12-07 18:38 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments

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:
     MYiNTEGERvARIABLE = MYiNTEGERvARIABLE + 5
Comment 1 Cor Nouws 2015-09-26 11:23:43 UTC
.