Counting the leading 0's and printing them

Status
Not open for further replies.
S

Suganthar

Guest
I am in the scenario where I need to count the leading 0's of the variable and place them in another variable using 4GL code.

For an example if the variable i (integer) is '00000546' then

  1. I need to count them as it is 5
  2. place them in another variable b (character) like '00000' + '546'

Please advise me.

Continue reading...
 
Status
Not open for further replies.
Top