VBScript - aansluitingsfunksie


❮ Voltooi VBScript-verwysing

Die Join-funksie gee 'n string terug wat uit 'n aantal substringe in 'n skikking bestaan.

Sintaksis

Join(list[,delimiter])

Parameter Description
list Required. A one-dimensional array that contains the substrings to be joined
delimiter Optional. The character(s) used to separate the substrings in the returned string. Default is the space character

Voorbeeld

Voorbeeld

Skei items in 'n skikking, met en sonder die gebruik van die delimeter parameter:

<%

days=Array("Sun","Mon","Tue","Wed","Thu","Fri","Sat")
response.write(Join(days) & "<br />")
response.write(Join(days,",") & "<br />")
response.write(Join(days," ### "))

%>

Die afvoer van die kode hierbo sal wees:

Sun Mon Tue Wed Thu Fri Sat
Sun,Mon,Tue,Wed,Thu,Fri,Sat
Sun ### Mon ### Tue ### Wed ### Thu ### Fri ### Sat

❮ Voltooi VBScript-verwysing