i have column having multiple value like A0045 ,A00065 . i want to convert it 9945, 9965. Need to remove all 0 and character value and add 99 before that value.. Please help..
相关问题
- Static vs dynamic queries in OpenEdge
- Deleting all special characters from a string in p
- How to 'group by' using variables in 4gl
- How to 'group by' using variables in 4gl
- Solve max length or precision with Progress using
相关文章
- How to 'group by' using variables in 4gl
- 进展萨克斯阅读器(Progress Sax-reader)
- 进展4GL Web服务过程(Progress 4GL web service procedure)
- 打开一个流中的持久性过程函数(Opening a STREAM in a Persistent Pr
- 如何搜索字符串中的所有表和所有领域?(How to search all tables and al
- 进展4GL显示缓冲区锁型(Progress 4GL Display Buffer Lock Type
- 是Mail_files是一个功能?(is Mail_files is a function?)
- 多OS-COMMAND的过程是冲突的呼吁(Multiple OS-COMMAND calls fro
define variable word as character no-undo.
define variable i as integer no-undo.
assign word = "A00065".
/*******To Remove all the zero********/
word = replace(word,substring(word,index(word,"0"),(r-index(word,"0") - 1)),"").
do i = 65 to 90: if substring(word,1,1) = chr(i) then do:
end.
end.
display word.
The code below removes the uppercase (A-Z) and lowercase letter (a-z) and "0" as well :
This can be done in many ways. Here is one way (may not be the best). As I don't have a database, I created a temp table.
Please do let me know if this works for you, Progress not installed so couldn't compile and test.
/* A0045 -> 9945 A00065 -> 9965 */