Just nu i M3-nätverket
Jump to content

Plocka bort allt utom siffror


Jakob Nanneson

Recommended Posts

Finns säkert andra sätt, men i alla fall:

 

function GetDigits(str)

result = ""

for i = 1 to len(str)

c = mid(str, i, 1)

if asc© < 58 and asc© > 47 then

result = result & c

next

GetDigits = result

end function

 

 

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.



×
×
  • Create New...