Concatenate works on GS but not on Iphone

stefdelecstefdelec Member, PRO Posts: 146

Hi,

I concatenate text+numbers or cellvalue(text)+cellvalue(number) or operations on numbers. It is working perfectly on GS viewer, but not on Iphone. Instead of displaying cellvalue, it displays numbers.

Comments

  • stefdelecstefdelec Member, PRO Posts: 146

    up

  • HopscotchHopscotch Member, PRO Posts: 2,782
    edited November 2015

    @stefdelec where are you seeing this, iOS Viewer or as an Adhoc build?

    For me an Adhoc build works fine when mixing types like you do.

  • stefdelecstefdelec Member, PRO Posts: 146

    First one is a screen shot of my Iphone.
    Second one is a screenshot inside GameSalad software on my mac
    Third one is the code inside Gamesalad software on my mac.

  • HopscotchHopscotch Member, PRO Posts: 2,782

    @stefdelec, still, I would like to know, on your phone, did you run it through the GS Viewer or did you install an adhoc build?

  • stefdelecstefdelec Member, PRO Posts: 146

    Sorry. Ad Hoc Build!

  • HopscotchHopscotch Member, PRO Posts: 2,782

    @stefdelec , your second function looks dangerous, please use the "log debugging" behavior in the creator to check that your attributes have valid values at all times when accessing tables. Something may be wrong there. The viewer is more forgiving than an adhoc build, that is possibly why you see different results.

  • stefdelecstefdelec Member, PRO Posts: 146

    what do you mean by 'dangerous'?

  • HopscotchHopscotch Member, PRO Posts: 2,782

    @stefdelec, to be fair, I jumped to conclusions. I saw you referencing a cell value, based on some involved calculation. Looking closer at your screenshot, this is not the case.

    Not knowing the rest of your code, it is quite reasonable to implement it the way you do. Something else must be causing the error.

    As I suggested before, use the "log debug" behavior to print out values to the debugging window.

    When do the tables get filled? Can it be that they are empty at some point before the above behaviors get called?

  • stefdelecstefdelec Member, PRO Posts: 146

    The first part is from a table I fill my self. It is the 'menu'.

  • stefdelecstefdelec Member, PRO Posts: 146

    I ve created an attribute with table cellvalue and I concatnated this attribute with tablecellvalue. It is working.

Sign In or Register to comment.