Write a string component function and save the result in an array

xiaoxiao2021-04-05  263

<% DIM ID_ARRAY (20) DIM TOTAL_ID TOTAL_ID = 0 SUB Interceptstring (TXT, STR) TXT = TRIM (TXT) X = LEN (TXT) Y = 0 Tempstr = ""

IF x> = 1 THEN for II = 1 TO X if MID (TXT, II, 1) = strnstr y = y 1 tempstr = "" Else Tempstr = Tempstr MID (TXT, II, 1) End if next end if id_Array (y) = Tempstr total_id = y end sub%>

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

New Post(0)