Resolved Asc function
- Advice
- John Vanleeuwe
- PowerBuilder
- Friday, 16 October 2020 05:36 PM UTC
Hi all,
We receive a string ( copy and paste) into an MLE.
From this mle string we need to filter out all the ascii values higher than 126.
We have the solution , something like this
string ls_a
ls_a = mle_1.text
for i = 1 to Len(ls_a)
character = Mid(ls_a,1)
If Asc(character) > 0 or ASC(character) > 126 Then
Else
ls_a = Replace(ls_a, i, 1, " " )
End If
yield()
next
So far so good , but try this with a 5.000.000 characters :)
Its taking hours :) How can i speed up this process ? Is there any way i can use a find function , anything ? Other possible solutions ? And no , i am not in charge of the data being copied in our app... I just need to filter it out.
TIA
John
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.