Citect Cicode string concatenate

toont

Member
Join Date
Sep 2014
Location
Den Bosch
Posts
56
Hi all,

I have trouble compiling the following simple Cicode function in Citect V7.0r1. Compiling gives the error "Operand expected".

Code:
FUNCTION RB_Test()

    STRING sString;
    sString = "bla" & " " & "bla2";
    
END

Cicode helpfile says a String can be concatenated with the "&" sign.
What could be wrong with the above syntax?
 
It's solved!
Concatenate should be done with a "+" sign and not the "&" sign (contrary to the manual). A restart was also needed.
 

Similar Topics

I am trying to display a variable within a cicode function onto a graphics page. This function queries a SQL database. I can get the value onto a...
Replies
3
Views
289
Hi guys, its my first time progamming cicode and I need to do popups alarms, there are several digital alarms and in their rising edge transition...
Replies
0
Views
507
Is there a way to run a Cicode function in the Cicode Editor? I have a function that works but I would like to run it without having a button on...
Replies
12
Views
2,990
in the past i have only been doing small mods to existing cicode and coping sections to reuse and modify to suit. Now i have been tasked to write...
Replies
5
Views
2,787
Does anyone have a Citect 2018 CiCode Reference Guide in pdf Format??? I know all the functions are in the help but..... I like to print them out...
Replies
5
Views
2,231
Back
Top Bottom