CodePudding user response:
Can be a string, using the POS to look ", then "string plus in the MultilineEdit ~ r ~ n show should be ok, but may have a better solutionCodePudding user response:
In the DataWindow, there is a string, separated by commas, "characters 1, 2", for example, require display for the first line in MultiLineEdi characters 1, 2 the content of the second line shows the characters, how to do? Thank you very much!!!!!! Be urgent!!!!!!string s='
S='characters 1, 2'
S=replace (s, 'and', '~ r ~ n ~ r ~ n)
Mle_1. Text=s
CodePudding user response:
string s1=', s2='
S1='characters 1, 2'
Int I=1
For I=1 to len (s1)
If mid (s1, I, 1)=', 'then
S2=s2 + '~ r ~ n'
The else
S2=s2 + mid (s1, I, 1)
End
End for
Mle_1. Text=s2
CodePudding user response:
string s1=', s2='
S1='characters 1, 2'
DO UNTIL pos (s1, ', ') & gt; 0
S2=s2 + mid (s1, 1, pos (s1, ', ')) + '~ r ~ n ~ r ~ n'
S1=mid (s1, pos (s1, ', ') + 1, len (s1))
LOOP
S2=s2 + '~ r ~ n ~ r ~ n + s1
Mle_1. Text=s2
CodePudding user response:
The above three methods, you choose a.CodePudding user response:
The above method can solve the problem of the original posterCodePudding user response:
Wait for people to answer.CodePudding user response:
This simple ah, online search will get the answer.CodePudding user response:
Haven't met this situation.CodePudding user response:
Have any PB can master to moonlight as a training instructor? If an interested friends, please send resume
To: [email protected], please contact: QQ: 174629429 MSN:[email protected]
CodePudding user response:
I just can ~ r ~ n