SRL Archive - Help

Multi-Lined DTMs


serajin

2012-05-11 11:09:50

Is it possible to spread a DTM over multiple lines instead of having it on a single line?

masterBB

2012-05-11 11:11:45

From: serajin
Is it possible to spread a DTM over multiple lines instead of having it on a single line?


Yes.

a := DTMFromString('hbkjarghbkarghbjzdvbjh'+
'grjahkafalxdnkjgbskjnbgbk34uwh85rhukgnugg'+
'gihulsgnkjgsjgs');

serajin

2012-05-11 11:14:43

ah excellent! Thank you for the quick response!

Is there any advantage to this, besides shorter lines. Is it proper form for code, or is this something other members will look down on?

gdsht

2012-05-11 11:26:28

Just prevents lines from spilling over margins I think, makes it look neater and easier to read.

Abu

2012-05-11 11:26:42

It just keeps standards in tact tbh. If the DTM isn't too long then it will go completely unnoticed.

However, if you're DTM is too long that it requires quite a lot scrolling to get to the end, then you should shorten it like shown above.

It won't get you any brownie points nor will it be frowned upon :)

serajin

2012-05-11 11:28:41

Oh okay! Thanks. I wasn't sure. I am trying to put some comments in my code, and it's a bit tricky when the comment for the DTM's is like 2 screens over!!

Thank you everyone for the help!