[Gambas-user] Multiline question

Jussi Lahtinen jussi.lahtinen at ...626...
Fri Jun 10 19:56:13 CEST 2011


What do you need exactly?
Sometimes you can short lines with "With", and math can be done in multiple
steps.

ii = 2 + 4 * f(1 + 2) + ...
-->
x = 1 + 2
ii = 4 * f(x)
ii += 2 + ...

Or:

sString = "123"
-->
sString = "1" &
"2" &
"3"

Or:

iInteger = 1 + 2 + 3
-->
iInteger = 1 +
2 +
3

These all should work with Gambas 2.23.

Jussi



On Fri, Jun 10, 2011 at 15:20, tobias <tobiasboe1 at ...20...> wrote:

> hello,
> i have a question about long lines. i know one can split long
> IF-statements at logical operations like
> IF TRUE = TRUE AND
> FALSE = FALSE THEN
> but is there a way to do that splitting in normal code? i think of
> something like
> i = \
> 2
>
> which should end up as
> i = 2
> for the interpreter. is there something like this?
>
> regards,
> tobi
>
>
> ------------------------------------------------------------------------------
> EditLive Enterprise is the world's most technically advanced content
> authoring tool. Experience the power of Track Changes, Inline Image
> Editing and ensure content is compliant with Accessibility Checking.
> http://p.sf.net/sfu/ephox-dev2dev
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>



More information about the User mailing list