Wenn ich JSL-Code schreibe, habe ich oft lange Reihen von JSL-Befehlen. Ich mag die langen Zeilen, da ich damit den Code, den ich geschrieben habe, einfacher lesen / organisieren kann und mein großer Monitor diese Anzeige beherrscht. Ich habe Wrap Text in den Einstellungen deaktiviert, aber wenn ich den Befehl "Reformat Script" (Bearbeiten | Reformat Script) aufrufe, werden viele meiner längeren Zeilen umbrochen und enthalten nun permanente Rückgaben. Ich möchte, dass der Befehl "Reformat Script" diese langen Zeilen in Ruhe lässt und nur für die Einrückung formatiert. Gibt es eine Einstellung in den Voreinstellungen, die ich vermisse, die diese langen Zeilen beibehalten und nicht in eine oder mehrere feste Ergebnisse einfügt? Ich habe ein Beispiel für meinen Code als bevorzugt hinzugefügt und mit dem Reformat-Skript werden harte Rückgaben eingefügt.
Example of code with all commands on same row
Column( "TIMESTAMP" ) << Set Name( "Date & Time" );
Column( "Date & Time" ) << Data Type( "Numeric", Format( "m/d/y h:m" ) );
Try( Column( "RECORD" ) << Set Name( "Record #" ) );
Try( Column( "Prog_ID" ) << Set Name( "Program ID" ) << Format( "Fixed Dec", 3 ) );
Try( Column( "Sys_Amp_hr_Tot" ) << Set Name( "Current Usage by Total System (Amp_Hr/Day)" ) << Format( "Fixed Dec", 3 ) << Set Display Width( 83 ) );
Try( Column( "Load_Amp_hr_Tot" ) << Set Name( "Current Usage by Datalogger (Amp_Hr/Day)" ) << Format( "Fixed Dec", 3 ) << Set Display Width( 80 ) );
Try( Column( "Batt_Amp_hr_Tot" ) << Set Name( "Current Entering Battery (Amp_Hr/Day)" ) << Format( "Fixed Dec", 3 ) << Set Display Width( 73 ) );
Try( Column( "IBatt_Amp_hr_Tot" ) << Set Name( "Current Entering/Exiting Battery (Amp_Hr/Day)" ) << Format( "Fixed Dec", 3 ) << Set Display Width( 73 ) );
Try( Column( "I_In_Chg_Amp_hr_Tot" ) << Set Name( "Current Entering Charger (Amp_Hr/Day)" ) << Format( "Fixed Dec", 3 ) << Set Display Width( 73 ) );
Try( Column( "V_in_chg_Avg" ) << Set Name( "Charger Voltage - Avg (V)" ) << Format( "Fixed Dec", 1 ) << Set Display Width( 59 ) );
Try( Column( "VBatt_Avg" ) << Set Name( "Battery Voltage - Avg (V)" ) << Format( "Fixed Dec", 1 ) << Set Display Width( 59 ) );
Try( Column( "Counts_Charge_State_None_Tot" ) << Set Name( "Charge State - None (Obs/Day)" ) << Format( "Fixed Dec", 0 ) << Set Display Width( 60 ) );
Try( Column( "Counts_Charge_State_Current_Ltd_Tot" ) << Set Name( "Charge State - Current Ltd (Obs/Day)" ) << Format( "Fixed Dec", 0 ) << Set Display Width( 60 ) );
Try( Column( "Counts_Charge_State_Cyclic_Tot" ) << Set Name( "Charge State - Cyclic (Obs/Day)" ) << Format( "Fixed Dec", 0 ) << Set Display Width( 60 ) );
Try( Column( "Counts_Charge_State_Float_Tot" ) << Set Name( "Charge State - Float (Obs/Day)" ) << Format( "Fixed Dec", 0 ) << Set Display Width( 60 ) );
Try( Column( "Counts_Charge_State_Battery_Test_Tot" ) << Set Name( "Charge State - Battery Test (Obs/Day)" ) << Format( "Fixed Dec", 0 ) << Set Display Width( 60 ) );
Try( Column( "Counts_Charge_Source_None_Tot" ) << Set Name( "Charge Source - None (Obs/Day)" ) << Format( "Fixed Dec", 0 ) << Set Display Width( 56 ) );
Try( Column( "Counts_Charge_Source_Solar_Tot" ) << Set Name( "Charge Source - Solar (Obs/Day)" ) << Format( "Fixed Dec", 0 ) << Set Display Width( 56 ) );
Try( Column( "Counts_Charge_Source_Continuous_Tot" ) << Set Name( "Charge Source - Continuous (Obs/Day)" ) << Format( "Fixed Dec", 0 ) << Set Display Width( 75 ) );
Try( Column( "Qloss" ) << Set Name( "Qloss (Amp_Hr/Day)" ) << Format( "Fixed Dec", 1 ) << Set Display Width( 67 ) );
Try( :Name( "Power Usage by Total System (W/Day)" ) << Set Display Width( 65 ) );
Try( :Name( "Power Usage by Datalogger (W/Day)" ) << Set Display Width( 73 ) );
Try( :Name( "Power Usage by Battery (W/Day)" ) << Set Display Width( 65 ) );
Try( :Name( "Power Usage by CH200 (W/Day)" ) << Set Display Width( 65 ) );
********************************
Example of code after running Edit | Reformat Script.
Column( "TIMESTAMP" ) << Set Name( "Date & Time" );
Column( "Date & Time" ) << Data Type( "Numeric", Format( "m/d/y h:m" ) );
Try( Column( "RECORD" ) << Set Name( "Record #" ) );
Try( Column( "Prog_ID" ) << Set Name( "Program ID" ) << Format( "Fixed Dec", 3 ) );
Try(
Column( "Sys_Amp_hr_Tot" ) << Set Name( "Current Usage by Total System (Amp_Hr/Day)" ) << Format( "Fixed Dec", 3 ) <<
Set Display Width( 83 )
);
Try(
Column( "Load_Amp_hr_Tot" ) << Set Name( "Current Usage by Datalogger (Amp_Hr/Day)" ) << Format( "Fixed Dec", 3 ) <<
Set Display Width( 80 )
);
Try( Column( "Batt_Amp_hr_Tot" ) << Set Name( "Current Entering Battery (Amp_Hr/Day)" ) << Format( "Fixed Dec", 3 ) << Set Display Width( 73 ) );
Try(
Column( "IBatt_Amp_hr_Tot" ) << Set Name( "Current Entering/Exiting Battery (Amp_Hr/Day)" ) << Format( "Fixed Dec", 3 ) <<
Set Display Width( 73 )
);
Try(
Column( "I_In_Chg_Amp_hr_Tot" ) << Set Name( "Current Entering Charger (Amp_Hr/Day)" ) << Format( "Fixed Dec", 3 ) <<
Set Display Width( 73 )
);
Try( Column( "V_in_chg_Avg" ) << Set Name( "Charger Voltage - Avg (V)" ) << Format( "Fixed Dec", 1 ) << Set Display Width( 59 ) );
Try( Column( "VBatt_Avg" ) << Set Name( "Battery Voltage - Avg (V)" ) << Format( "Fixed Dec", 1 ) << Set Display Width( 59 ) );
Try(
Column( "Counts_Charge_State_None_Tot" ) << Set Name( "Charge State - None (Obs/Day)" ) << Format( "Fixed Dec", 0 ) <<
Set Display Width( 60 )
);
Try(
Column( "Counts_Charge_State_Current_Ltd_Tot" ) << Set Name( "Charge State - Current Ltd (Obs/Day)" ) << Format( "Fixed Dec", 0 ) <<
Set Display Width( 60 )
);
Try(
Column( "Counts_Charge_State_Cyclic_Tot" ) << Set Name( "Charge State - Cyclic (Obs/Day)" ) << Format( "Fixed Dec", 0 ) <<
Set Display Width( 60 )
);
Try(
Column( "Counts_Charge_State_Float_Tot" ) << Set Name( "Charge State - Float (Obs/Day)" ) << Format( "Fixed Dec", 0 ) <<
Set Display Width( 60 )
);
Try(
Column( "Counts_Charge_State_Battery_Test_Tot" ) << Set Name( "Charge State - Battery Test (Obs/Day)" ) << Format( "Fixed Dec", 0 ) <<
Set Display Width( 60 )
);
Try(
Column( "Counts_Charge_Source_None_Tot" ) << Set Name( "Charge Source - None (Obs/Day)" ) << Format( "Fixed Dec", 0 ) <<
Set Display Width( 56 )
);
Try(
Column( "Counts_Charge_Source_Solar_Tot" ) << Set Name( "Charge Source - Solar (Obs/Day)" ) << Format( "Fixed Dec", 0 ) <<
Set Display Width( 56 )
);
Try(
Column( "Counts_Charge_Source_Continuous_Tot" ) << Set Name( "Charge Source - Continuous (Obs/Day)" ) << Format( "Fixed Dec", 0 ) <<
Set Display Width( 75 )
);
Try( Column( "Qloss" ) << Set Name( "Qloss (Amp_Hr/Day)" ) << Format( "Fixed Dec", 1 ) << Set Display Width( 67 ) );
Try( :Name( "Power Usage by Total System (W/Day)" ) << Set Display Width( 65 ) );
Try( :Name( "Power Usage by Datalogger (W/Day)" ) << Set Display Width( 73 ) );
Try( :Name( "Power Usage by Battery (W/Day)" ) << Set Display Width( 65 ) );
Try( :Name( "Power Usage by CH200 (W/Day)" ) << Set Display Width( 65 ) );
Das ist sehr schade. Danke für die Information. Ich werde eine Feature-Anfrage an die JMP-Unterstützung stellen.