john-tvh / VBE_Extras

VBE Extras ... extending the VBA editor
https://www.thevbahelp.com/vbe-extras
1 stars 0 forks source link

Adding a 'factory' assigns wrong values #23

Closed john-tvh closed 2 months ago

john-tvh commented 2 months ago

Describe the bug Adding a 'factory' assigns wrong values to the Properties in the Create() method ... it uses the name of the Module-level member, should use the name of the parameter.

To Reproduce Steps to reproduce the behavior:

  1. Ensure 'New Property prefix behaviour' is set to 'Remove entire prefix' or 'Remove g, p and m only'
  2. In a Class Module, add 1 or more Module-level members
  3. Click on 'Add Factory'
  4. In the 'Add Factory' dialog, click 'Add'

Expected behavior The Create() method should use the name of the parameter(s).

Frequency of bug Every time the 'Add Factory' command is used.

Context n/a

Please complete the following information: VBE_Extras v1.5.2.1, build 6 Sep 2024 12:02:48 LGF: v2.3.2.0 LGS: v3.2.5.0 LFF: v4.2.2.0 VEH: v20230831.05 .NET Framework 4.8.9261.0 CLR: v4.0.30319 Microsoft Windows 10.0.22631 : X64 Debugger attached Excel 365 (16.0, 17928, WIN64, VBA7) VBE 7.01.1141 UI Lang: en-GB (menu names English) Host: excel.EXE v16.0.17928.20114 Exp: S-GET, S-CCAS, CU OA: none

john-tvh commented 2 months ago

This is only an issue in versions 1.5.2.0 and 1.5.2.1. Workaround is to use 'No change' for the 'New Property prefix behaviour' Setting (in the 'Code' tab of the Settings dialog) until the next release in which this is fixed.

john-tvh commented 2 months ago

Fixed in release 1.5.2.2