Page 1 of 1 1
Topic Options
#124865 - 2004-08-13 09:33 AM Write long codes
gelico Offline
Lurker

Registered: 2004-07-19
Posts: 2
Hello,

There is anyway to spread code over several lines like in visual basic codes using _ (underscore)

Thanks


Top
#124866 - 2004-08-13 09:47 AM Re: Write long codes
Richard H. Administrator Offline
Administrator
*****

Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
KiXtart is very loosely structured, so you can break the code over as many lines as you like - indeed it is encouraged where it makes the code easier to read.

You don't need a special character, but you must break the code in a sensible place. Don't break in the middle of a variable name for example.

Examples:
Code:

Function udfMyFun(
$Var1,
$Var2,
$Var3
)


Code:
   $CSVString=

'"'+$Var1+'",'
+ '"'+$Var2+'",'
+ '"'+$Var3+'",'
+ '"'+$Var4+'"'


Top
#124867 - 2004-08-13 09:50 AM Re: Write long codes
gelico Offline
Lurker

Registered: 2004-07-19
Posts: 2
Ok

Thanks

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 837 anonymous users online.
Newest Members
ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder, M_Moore
17887 Registered Users

Generated in 0.052 seconds in which 0.024 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org