A few bugs (?)

<[email protected]> 20 Apr 2014 15:26:48 -0700
Newsgroups gmane.comp.windows.gui4cli
Message-ID <[email protected]>
Hi Dimitris,

I want to report a few bugs I found. Not much considering I'm using g4c almost daily for many years.

1. repVar doesn't work if you wan to replace (remove in my case) a word at the end of a string like;

string = 'this is an example'
repVar string 'example' ''

I have a workaround for it by temporarily adding a space to the end of the string which I remove again afterwards with a extract trim command.

2. A dir listview in the "list" mode doesn't reset its column width when you switch from a folder with long file names to one with short(er) file names.

I also have for this a workaround by hiding the listview and first switch "list" mode to "Icon" mode and then back to "list" mode. Then show the listview again. This has reset it to the smaller incon width.

3. Don't know if it's a bug but the "res" command doesn't see any resource in the g4c executable?

4. And then the thing with extract/ext/noext. I mentioned it earlier but it may be that you don't see it as a bug. It concerns the use of the extract function with strings that actually do not have a extension;

path = "C:/Program Files/application version 3.2.2/datafile"

Here returns temp with "extract path NOEXT temp"; "C:/Program Files/application version 3.2" where extract sees "2/datafile" as the extension. IMO it should stop, while backwards scanning, at the first occasion it finds a slash and then return an empty result.

Well, that's all. Should you find the time in the future to dig in the code a bit, it would be nice if you could take a look at it.

Thanks and all the best.

Chris