Project

General

Profile

Bug #149

Method Extract: Partial variable name check

Added by Wil van Antwerpen over 5 years ago. Updated over 5 years ago.

Status:
In Progress
Priority:
Normal
Assignee:
-
Category:
-
Start date:
05/31/2019
Due date:
% Done:

0%


Description

Sometimes a variable is seen as being part of a method even while it is not.
It looks like this happens because of a partial match.
This only happens if the variable is part of the main procedure and is then matched against the extracted code.

For example:
integer mycode
because there is a database field in the method extracted code that looks like customer.mycode

History

#1 Updated by Wil van Antwerpen over 5 years ago

  • Status changed from New to In Progress

This particular case is now covered by checking for valid left characters.

Define CS_ValidLeftCharacters For ("()[];,&+-*<>= "+Character(9)) // Character 9=tab char

A dot is not a valid character to test if the variable exists or not as the above example shows.

Also available in: Atom PDF