Concatenate works on GS but not on Iphone
stefdelec
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
up
@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.
MESSAGING, X-PLATFORM LEADERBOARDS, OFFLINE-TIMER, ANALYTICS and BACK-END CONTROL for your GameSalad projects
www.APPFORMATIVE.com
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.
@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?
MESSAGING, X-PLATFORM LEADERBOARDS, OFFLINE-TIMER, ANALYTICS and BACK-END CONTROL for your GameSalad projects
www.APPFORMATIVE.com
Sorry. Ad Hoc Build!
@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.
MESSAGING, X-PLATFORM LEADERBOARDS, OFFLINE-TIMER, ANALYTICS and BACK-END CONTROL for your GameSalad projects
www.APPFORMATIVE.com
what do you mean by 'dangerous'?
@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?
MESSAGING, X-PLATFORM LEADERBOARDS, OFFLINE-TIMER, ANALYTICS and BACK-END CONTROL for your GameSalad projects
www.APPFORMATIVE.com
The first part is from a table I fill my self. It is the 'menu'.
I ve created an attribute with table cellvalue and I concatnated this attribute with tablecellvalue. It is working.