|
Post by George on Dec 17, 2020 11:48:52 GMT -5
Stefan: Robert:
Well if you want to stuff CFGMaint into a BAT file to run IMPORT unattended, then yes, Import needs a filename operand.
Since we now have -EXPONE I suppose -IMPONE would be appropriate.
George
|
|
|
Post by Stefan on Dec 17, 2020 13:32:37 GMT -5
Yes, I figured that to swap keyboards, I would ... - build a Keyboard table file for each keyboard I need, plus an icon on the desktop for each one
- The icon invokes CFGMAINT to update the CFG with the right keyboard table file, - Use the normal SPFLite icon to start SPFLite (I abandoned the BAT file approach as I often drag a file to the SPFLIte icon and the BAT file would get in the way.)
Forgive me, but I find the operands -EXP ONE and -IMP ONE misleading, as they imply the import can only consist of ONE table. Surely the imported file can contain any number of tables, even a whole CFG.
It's just that a selected 'single table' is the most likely use-case (thus far!).
Bearing in mind that the proposed procedure is something for 'advanced' users anyway, I can't really see the point of -EXPONE <tablename>. A standard -EXPORT creates a TXT file and deleting all but one table from it is a simple edit task. So there's no real need to accommodate a new -EXPONE keyword plus its operand to name the table to be exported.
Which leaves us needing only an -IMPFILE <filename> keyword to nominate the file that contains the data to be imported.
The rules say, it can be anything from an empty file, to one or more whole or partial tables. Any settings missing from imported table(s) will be reset to their respective Default values.
I guess to be completely free from human intervention, the -QUIET operand will also be required to suppress the usual pop-up messages generated by -IMPORT, unless you make it so that it is implied by -IMPFILE
|
|
|
Post by Stefan on Dec 17, 2020 13:45:56 GMT -5
New buglets (I think!) in v350 and v352
LOCATE command won't go backwards when a line command is pending.
You can no longer use LOCATE <linenumber> | <label> to jump to an earlier part of the file AFTER you've entered part of a line command sequence, eg:
you CAN do
- Place the 'A' line command on line line 5
- LOCATE 90
but you CANNOT do - Place the 'A' line command on line 90 - LOCATE 5
|
|
|
Post by George on Dec 17, 2020 15:19:18 GMT -5
I'll rework the parsing a bit so that:
-EXPORT [ table-name ] [ -EXPMAX nn ] [ -QUIET ] -- No Table-name is a full Export
-IMPORT [ file-name ] -- No File-name will pop-up an OpenFile dialog
-REPAIR -- No Operands
Paired operands are not position independent like the SPFLite command line.
i.e.
table-name must be right after -EXPORT
file-name must be right after -IMPORT
nn must be right after -EXPMAX
-IMPORT with a file-name will assume -QUIET
|
|
|
Post by George on Dec 17, 2020 16:47:23 GMT -5
Stefan: The LOCATE problem you're seeing is yet another interaction in the Attention Position code. That option is becoming a real thorn in my side.
George
[UPDATE]
OK, I think I have a fix for this.
[\UPDATE]
G.
|
|