Graphics

 View Only
  • 1.  XPRESSION GO SCRIPTING

    Posted 06-30-2021 23:37
      |   view attached

    Hi, I am using the below script to separate the first and last name from a data source

    Text = Split(Text, " ", 2)(0)


    It displays correctly in Xpression Designer, however in Xpression GO it does not (see attached).

    Is scripting not a feature in Xpression GO? Or does anyone know of a workaround.

    ​Any help is appreciated, Thanks

    #XPression



    ------------------------------
    Sam McIntosh
    ------------------------------


  • 2.  RE: XPRESSION GO SCRIPTING

    Posted 07-01-2021 05:37
    Depends on what version of go it is. Is it Prime Go or Studio Go?

    ------------------------------
    Simon Redmile
    Ross Video
    ------------------------------



  • 3.  RE: XPRESSION GO SCRIPTING

    Posted 07-01-2021 07:47
    Hi  Simon,  it is Prime Go

    ------------------------------
    Sam McIntosh
    ------------------------------



  • 4.  RE: XPRESSION GO SCRIPTING

    Posted 07-01-2021 08:55
    Prime does not support scripting. You'll need to upgrade to Studio Go for scripting.

    ------------------------------
    Simon Redmile
    Ross Video
    ------------------------------



  • 5.  RE: XPRESSION GO SCRIPTING

    Posted 07-01-2021 19:47
    Is there a way to achieve this using visual logic.

    I know you can split a string after a number of characters but can you split after a specific character or space

    ------------------------------
    Sam McIntosh
    ------------------------------



  • 6.  RE: XPRESSION GO SCRIPTING

    Posted 07-02-2021 05:33
      |   view attached
    Yup using the string position block, in the substring section here I have put a space so the string position block tells me where that space is. After that I use that position to complete the left string and the mid string. 

    I have attached the project so you can take a look. 


    ------------------------------
    Simon Redmile
    Ross Video
    ------------------------------

    Attachment(s)

    xpf
    VL split text.xpf   10 KB 1 version