Simple concatination

Post any questions you have about using the Verj.io Studio, including client and server-side programming with Javascript or FPL, and integration with databases, web services etc.

Moderators: Jon, Steve, Ian, Dave

Pnirff
Ebase User
Posts: 21
Joined: Fri Jan 25, 2013 8:36 am

Simple concatination

#1

Postby Pnirff » Wed Jan 07, 2015 3:17 pm

Hello,

again I try your software and wonder, wether a concatination with ' is possible.
I try to do the following:

set sWelcome = WELCOMETEXT';
interpret 'set ' + sWelcome + '.text = ''Bla''';

But it doesn't work. I try to concatinate a ' and in java, c or other langs it will be done with a double '

Thx in advance
Pnirff
0 x

Jon
Moderator
Moderator
Posts: 1342
Joined: Wed Sep 12, 2007 12:49 pm

#2

Postby Jon » Wed Jan 07, 2015 4:09 pm

Hi,

You are using the FPL programming language and you need to escape single quotes using a backslash e.g.

Code: Select all

set sWelcome = 'my son\'s dog';
or to add a single quote to an existing field:

Code: Select all

set sWelcome = sWelcome + '\'';
In both these examples, sWelcome is a form field.

If you are familiar with programming languages, you will probably find it easier to use Javascript instead of FPL as the server-side scripting language.

Regards
Jon
0 x

Pnirff
Ebase User
Posts: 21
Joined: Fri Jan 25, 2013 8:36 am

#3

Postby Pnirff » Thu Jan 08, 2015 10:39 am

Hello Jon,

works fine. Thanks. If have another one, but I will open a new thread. Perhaps someone else got the same question :)

bye and Thx
Manfred
0 x


Who is online

Users browsing this forum: No registered users and 26 guests