Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Concatenate a character at the end of an lpstr string
#1
I need to concatenate a character at the end of each one of the elements of an lpstr string. In the first place it works. However, when I try to access the elements of the string I always get, to every element, the value of the last element. I attach the code I use. Any advice regarding my error will be much appreciated. Many thanks in advance.

Function tempf07
Code:
Copy      Help
ARRAY(lpstr) af
str s="a|b|c"
tok s af -1 "|" 1

for int'i 0 af.len
,af[i]=F"{af[i]}*"
,out af[i]

for i 0 af.len
,out af[i]


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)