WinFBE - Function List

Started by SeaVipe, April 12, 2020, 04:25:01 PM

Previous topic - Next topic

SeaVipe

Hi Paul, I've had some issues in the past with F6 and the Editor DropDown List not being able to find/display a known Function or Sub. Today I discovered that the Comment pair /' '/ are to some extent causing the problem. Inline version has no adverse effect.

/' This does not stop the Function/Sub from being included in the Function List '/
' But...
/'
    This blocks the Function/Sub from being included in the Function List
'/

/' '/ Used at Module Level does not appear to cause the same problem.
Follow-Up: My first attempt to compile after removing the /' '/ pair resulted in a WinFBE crash. I've been unable to compile this project since...(Other projects compile okay.)
Clive Richey

Paul Squires

Hi Clive,

I'm curious about the line:

/' This does not stop the Function/Sub from being included in the Function List '/

How do you have sub/function all on one line? If I remember correctly, the parser looks for FUNCTION / END FUNCTION on separate lines. It doesn't look at DECLARE FUNCTION lines when deciding whether to include the function in the list.
Paul Squires
PlanetSquires Software

SeaVipe

Sorry, not too clear.
When the Comment Pair is all on one line like:
/' this is a comment '/ no problem.
When the Comment Pair is used over a number of lines like this:
/'
Comment
Comment
Etc.
'/

Then the Function or Sub that the Comment Pair is used in will not appear in the Function List when F4 is pressed or in the Editor's dropdown Function list.
When used at module level, outside of a Function or Sub, no matter which version - inline or multiline, the function list is populated correctly.
Clive Richey