Hi Ton,
>> - can I override the jFiles class somehow.
yes. But it's more complicated than would be typical, because jFiles creates a lot of nodes "of itself" internally. Some methods (the ones I've typically embedded in) deal with this, but not all methods can be overridden.
>> Currently when I override it, the compiler starts complaining when I use methods that use "JSONClass" in the prototype, I guess I have to override all these method too?
depends how you override it I guess. I'd probably need an example to be sure.
>> - how can easily override the default properties of the constructor/start method globally. I currently hack the constructor to fill my needs (in jFiles.clw), but that's not the way it should work
you'd embed in Start I think.
Basically, create a derived class (.inc, .clw) - then just put some nwe stuff in .Start, and call the parent. You can do things in the CONSTRUCT, but jFiles is deisgned that .Start returns it to a "default state"- so that's a better place to set defaults.
>> - what is "MaxPrefixLengthInJSON" actually used for. Now it only deletes prefixes when the the prefix length is smaller than 4 characters and that gave some unexpected results when importing to a Queue with a prefix that is longer than 4 characters ...
the place I use it the most is in NetTalk Web Service Methods. Dealing with prefixes there is a bit painful because : is not a legal char on the web.
>> - in the latest release there are tons of calls to .GetFieldName(A) and .AdjustFieldname that slow down considerably when there is more than 2 records to import. Can this be resolved without hacking the jFiles.clw?
I'm always looking to improve performance, so if you have suggestions on that front the easiest is to make the changes and then send them to me. If they are generically faster then of course I can just fold them into the class. However be warned, those are not as simple as they look.
GetFieldName is primarily called from FillStructure, but FillStructure is recursive, so if GetFieldName is
to cache the name then it needs to be aware it can be called for different groups. Which gets twicky.
cheers
Bruce