Write a function when watching the game, transitioning between Chinese and numbers

xiaoxiao2021-03-06  114

Function ChangTypecn (PAR_CONTENT) DIM CTON, NTOC, CNO, CYCLE, NYCLE, CarrayCno = "One ~ 2 ~ Three ~ 4 ~ 5 ~ Six ~ Seventh ~ 8 ~ Nine ~ 10 ~ 11 ~ 12-13 ~ 14 ~ 15 ~ 16 ~ 17 ~ 18 ~ 19-20 "Carray = Split (CNO," ~ ") IF isnumeric (par_content) Then for cycle = 0 to 19 if par_content = cycle dam = carray ( CYCLE-1) CHANGETYPECN = NTOC END IF NEXTELSE for cycle = 0 to 19 if par_content = carray (cycle) Then Cton = cycle changePecn = Cton 1 end if nextend if End Function

How to use: If sek_hidweek = 1

Response.write (Sek_hiPecn) So output is one

If SEK_HIDWEEK = 'five', then the output is 5, now only the mutual conversion of 1 to 20, if you want to expand, just change a little parameter.

转载请注明原文地址:https://www.9cbs.com/read-126487.html

New Post(0)