Crystal reports indicate the number of lines spelled

I would like to create a type numbering system in my crystal report in the following format:

  • text

    a. text

    b. text

  • text

    a.text

    b.text

    with. text

etc. I can generate 1,2,3 where I use a, b c. Is there a crystalline formula for converting 1 to a, 2 to b, etc. Or do I need to write one?

+4
source share
1 answer

You would use the chrw crystal chrw to convert int to char and ascii table. (hint: a = 97)

 chrw(96 + i) //where i is 1 based 

or convert "a" to unicode using ascw and count ...

 chrw(ascw("a") + (i-1)) //where i is 1 based 
+3
source

Source: https://habr.com/ru/post/1383500/


All Articles