View previous topic :: View next topic
|
Author |
Message |
boo_sri
New User
Joined: 26 Jul 2005 Posts: 36 Location: charlotte
|
|
|
|
Why the use of Delimited By clause is a Must in STRING statements. |
|
Back to top |
|
|
UmeySan
Active Member
Joined: 22 Aug 2006 Posts: 771 Location: Germany
|
|
|
|
Hi !
Because a length is needed. This length is deducible from the delimiter.
In comon it's nothing else than a variable move.
Field-A Value 'aaaa bbbb'
String Field-A to Field-B de,imited by space
Field-B Value 'aaaa'
Move Field-A (1:4) to Field-B
Regards, UmeySan |
|
Back to top |
|
|
boo_sri
New User
Joined: 26 Jul 2005 Posts: 36 Location: charlotte
|
|
|
|
Suppose if you want to concatenate two strings, let us assume "AAA" "BBB" which don't have any delimiters. Then what is the use of delimiter clause here, why can't we use the String without delimiters. |
|
Back to top |
|
|
UmeySan
Active Member
Joined: 22 Aug 2006 Posts: 771 Location: Germany
|
|
|
|
Hi !
Your example is a simple String with delimited by size
String Field-A, Field-B
delimited by size
into Field-Z
End-String
So please, don't spend to much time thinking on higher psychologically important background details of a command. Utilize the time to construct
clear and efficient programms.
Regards, UmeySan |
|
Back to top |
|
|
|