Home > database >  Questions about the data resolution, master please help?
Questions about the data resolution, master please help?

Time:09-20

Such as recorded in the table is in the PB abcT2 according to the second from bottom is T, judging from the first number again, and then broken down into abc1, revised two records, if it is abcT3 is split into abc1, revised, abc3 three records should be how to write? Please give advice or comments

CodePudding user response:

String ls_record_ini ls_record []

Long ll_count

Ls_record_ini='abcT4'

Ll_count=long (ls_record, 1) (right)

For I=1 to ll_count
Ls_record [I]=left (ls_record_ini, pos (ls_record_ini 'T')) + string (I)
Next


Also did not check, so meaning, spirit,

CodePudding user response:

reference 1st floor sjlion response:
string ls_record_ini, ls_record []

Long ll_count

Ls_record_ini='abcT4'

Ll_count=long (ls_record, 1) (right)

For I=1 to ll_count
Ls_record [I]=left (ls_record_ini, pos (ls_...

Seems to judge whether the have the first character recycle,

CodePudding user response:

Sorry
Ls_record_ini='abcT4'
What's that mean? I want to according to the second from bottom is T,

CodePudding user response:

If ls_record_ini='abcT4'...


'abcT4' are you from the database to retrieve the value of the ah, right on the second floor, should determine first, if you are not all records contain T

CodePudding user response:

String ls_get ls_put []
Long ll_cry, ll_count

Ls_get='//please give ls_get assignment, here is the
abcT several
If mid (ls_get, len (ls_get) - 1, 1)='T' then
If Asc (ls_get, 1) (right) & gt;=49 and Asc (ls_get, 1) (right) & lt; 57 then=
Ll_count=long (ls_get, 1) (right)
For ll_cry=1 to ll_count
Ls_put [ll_cry]=left (ls_get, len (ls_get) - 2) + string (ll_cry)
Next
End the if
end if

CodePudding user response:

 
String ls_Record_ini='abcT4'
String ls_1
Long ll_Count
Long ll_Item

//determine whether followed for T
If Mid (ls_Record_ini, len (ls_Record_ini) - 2, 1)='T' then
//take cycles
Ll_Count=long (right (ls_Record_ini, 1)

//character data before T
Ls_1=mid (ls_Record_ini, 1, len (ls_Record_ini) - 2)

//cycle of the new string
For ll_Item=1 to ll_count
MessageBox (" new string, "ls_1 + string (ll_Item))
Next
End the if

CodePudding user response:

With top players vippolka method, can implement, thanks!

CodePudding user response:

What if I want to achieve in this form?
F8N18461T4 according to the second from bottom for "T" split into F8N18461, F8N18462, F8N18463, F8N18464, third from bottom is + 1 form, thank you.
  • Related