‎2007 Jul 13 3:17 AM
I have the following statement
field2 = field2 + v1(v2).
Where v1 and v2 are variables or data elements.
‎2007 Jul 13 3:23 AM
‎2007 Jul 13 3:19 AM
‎2007 Jul 13 3:21 AM
Yes, V1 and V2 are variable.
Is this possible or I have to give a hard code number
depending on V1 and V2 I want my string to display the values
‎2007 Jul 13 3:28 AM
Hi,
It is possible to display the values.
Check this code.
data v1 type string value 'Hello'.
write v1+2(3).
Kindly reward points by clicking the star on the left of reply,if it helps.
‎2007 Jul 13 3:33 AM
Let me elobarate,
Let us say field2 has string value 'Please Help'
data: V1 type i value 2,
V2 type i value3.
can I have
field2 = field2 + V1(V2).
ie.. now field2 has 'eas'.
‎2007 Jul 13 3:36 AM
data: field2 type str value 'Please Help'.
data: V1 type i value 2,
V2 type i value 3.
field2 = field2+V1(V2). " Remove spaces here before and after '+' (PLUS)
write : field2.Check this... it works
Reward for useful answers
Regards
Gopi
‎2007 Jul 13 3:23 AM
‎2007 Jul 13 3:40 AM
Hi,
field2 = field2+v1(v2). "without space
give equalent result as
field2 = field2+2(3)
aRs
‎2007 Jul 14 12:14 AM