Skip to content

Implement CNTBAR() and CNTPAD() - #2172

Open
Irwin1985 wants to merge 1 commit into
devfrom
feature/vfp-cntbar-cntpad
Open

Irwin1985 wants to merge 1 commit into
devfrom
feature/vfp-cntbar-cntpad

Conversation

@Irwin1985

Copy link
Copy Markdown
Contributor

CNTBAR() and CNTPAD() were stubs that threw NotImplementedException. They're implemented now, next to the other menu functions in XSharp.VFP.UI.

CNTBAR() returns the highest bar number of the popup, like VFP does. With bars 1, 2 and 5 it returns 5, and a separator counts too. CNTPAD() returns the number of pads.

An unknown name returns 0 instead of raising an error, same as the other menu functions.

Four tests added.

Both were stubs that threw NotImplementedException. They live now next
to the other menu functions in XSharp.VFP.UI. CNTBAR() returns the
highest bar number of the popup, like VFP does, and CNTPAD() the number
of pads. Four tests added.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant