Saltar navegación

Topic

Breaking FP Script across lines

Página de inicio ' Community ' FPScript ' Romper el guión FP entre líneas

Viendo los mensajes de 3 - 1 a 3 (de 3 en total)
  • Autor
    Puestos
  • #33625
    Anónimo
    Invitado

    Hello,

    I wondered whether it is possible to break FPScript code across lines?

    This would help with formatting and where formulas get quite long.

    Many thanks,

    Hugh

    #33626
    Hugh Neve
    Participante

    Hello,

    I wondered whether it is possible to break FPScript code across lines?

    This would help with formatting and where formulas get quite long.

    Many thanks,

    Hugh

    #33627
    Bernhard Kantz
    Keymaster

    One can split a line of FPScript code by using a underscore ‘_’ or backslash ” character at the end of a line like in the following example:

    [code]
    Dim result = List(_
    “I”, 42, _
    “II”, 1093, _
    “III”, 2.718, _
    “IV”, “Hello world!” _
    )
    [/code]

Viendo los mensajes de 3 - 1 a 3 (de 3 en total)
  • Debes estar registrado para responder a este tema.