BUG: Variables not working, if TAB is used as spacer

https://www.dacm-logiciels.fr/tracewin
Post Reply
Germanyhendrik.haehnel
Apprentice
Apprentice
Posts: 23
Joined: Mon 30 Nov 2020 09:46
Country:
Germany (de)
Germany

BUG: Variables not working, if TAB is used as spacer

Post by Germanyhendrik.haehnel »

Dear Didier,
I have found the following undesired behaviour:
If TAB spaces are used to separate the parameters of an element, VARIABLES placed as parameters will not work.

Screenshot 2022-12-16 100617.png
Screenshot 2022-12-16 100617.png (16.83 KiB) Viewed 3258 times
Using normal space characters everything works as expected.
Could you fix that? It is nice to structure the file with tab spaces for visibility.

Best regards,
Hendrik
User avatar
FranceDidier
Administrator
Administrator
Posts: 975
Joined: Wed 26 Aug 2020 14:40
Country:
France (fr)
France

Re: BUG: Variables not working, if TAB is used as spacer

Post by FranceDidier »

Dear Hendrik,

Are you sure that TAB_space is the problem here
I think the rigth syntax should be "Line: Multipole 1 100 100 0 26"
And yes the manual is not clear, it's 0 for B and 1 for E.

Regards,

Didier
Germanyhendrik.haehnel
Apprentice
Apprentice
Posts: 23
Joined: Mon 30 Nov 2020 09:46
Country:
Germany (de)
Germany

Re: BUG: Variables not working, if TAB is used as spacer

Post by Germanyhendrik.haehnel »

Yes, I can replicate with a drift:
Screenshot 2022-12-16 113130.png
Screenshot 2022-12-16 113130.png (15.86 KiB) Viewed 3253 times
Best regards,
Hendrik
User avatar
FranceDidier
Administrator
Administrator
Posts: 975
Joined: Wed 26 Aug 2020 14:40
Country:
France (fr)
France

Re: BUG: Variables not working, if TAB is used as spacer

Post by FranceDidier »

Sorry I didn't understand what you were trying to show me with this new error

Regards,

Didier
Germanyhendrik.haehnel
Apprentice
Apprentice
Posts: 23
Joined: Mon 30 Nov 2020 09:46
Country:
Germany (de)
Germany

Re: BUG: Variables not working, if TAB is used as spacer

Post by Germanyhendrik.haehnel »

The Syntax is correct, but the TAB spaces generate this error. My Multipole definition was correct. The issue is with tabstop characters and variables.

so
"VARIABLE driftlength 10"
"DRIFT [SPACEBAR] driftlength [SPACEBAR] 8.75" --> works without error

"VARIABLE driftlength 10"
"DRIFT [TAB] driftlength [TAB] 8.75" --> throws the error

Best regards,
Hendrik
User avatar
FranceDidier
Administrator
Administrator
Posts: 975
Joined: Wed 26 Aug 2020 14:40
Country:
France (fr)
France

Re: BUG: Variables not working, if TAB is used as spacer

Post by FranceDidier »

Sorry for my misunderstanding, I didn't realise you were using the 'VARIABLE' command.
Okay, that's fixed.

Regards,

Didier
Germanyhendrik.haehnel
Apprentice
Apprentice
Posts: 23
Joined: Mon 30 Nov 2020 09:46
Country:
Germany (de)
Germany

Re: BUG: Variables not working, if TAB is used as spacer

Post by Germanyhendrik.haehnel »

It is working now, thank you ;)

Best regards,
Hendrik
Post Reply