toString in b&r

hello
I have a little question how have
I read the file csv for sd i use the

for read file but i have the problem because in automation studio the value result Udint

I want the value in string for modification

where is the function toString in B&R because in help is not present

image

thank you all

Two possibilities:
AsIecCon library : DINT_TO_STRING, UDINT_TO_STRING and so on
or
AsBrStr library : brsitoa

i try in this momenti whit brsitoa

example

the result is not correct ,i want ( like ) this result in string 40;$n

because next step for me is command ‘Left’ for remove this part

thank you for support

It seems that byReadData is an array of UDINT or DINT.
The conversion brsitoa is correct.
If you want to add the newline $n to the generated string, you could use an additional brsstrcat.

See also:
https://help.br-automation.com/#/en/4/programming%2Fprograms%2Fprogrammingmodel_programs_literalsiniec.html

ok
Maybe I explained myself wrong
I would like this final result:

start this
image

final

image

thank you

Normally bReadData is declared as USINT array or as STRING and not as UDINT array.


Then you have to search for the delimiter ‘;’ in this STRING with for instance the FIND function from the STANDARD library and then use functions like LEFT also from this library.

In the language c or c++ you could also extract these numbers with functions like strstr or strtok.

You could also look at MpRecipeCsv.

CSV files are ultimately pure text files. You can simply read the data into strings, but you have to separate the individual fields yourself which might be a lot of work.

You may save yourself a lot of work if you use this library:

thanks all for support me

the solution Corne Geerts is resolution for my problem

the solution Chrristoph is good but I have problem for installation in old machine remote

thanks