By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,647 Members | 1,618 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,647 IT Pros & Developers. It's quick & easy.

How to seperate multiple requests sending by combobox Combobox

P: 7
Hi,

My question is that; is there any specified function to seperate multiple
requests sending by combobox in a form? If yes can anybody explain me how?

So I can make this by writting new function but i don't want to spend time with this if there is more simple way to do this.
Thanks for all...
Dec 12 '06 #1
Share this Question
Share on Google+
3 Replies


sashi
Expert 100+
P: 1,754
Hi,

My question is that; is there any specified function to seperate multiple
requests sending by combobox in a form? If yes can anybody explain me how?

So I can make this by writting new function but i don't want to spend time with this if there is more simple way to do this.
Thanks for all...
Hi there,

It's not possible to provide any solution without seeing the actual code, please attach your dropdown / combobox code in your next post. It's alot more easier to assist in that way, hope you understand what i mean. Good luck & Take care.
Dec 13 '06 #2

P: 7
Hi there,

It's not possible to provide any solution without seeing the actual code, please attach your dropdown / combobox code in your next post. It's alot more easier to assist in that way, hope you understand what i mean. Good luck & Take care.
Actually I am talking about ASP request. Whatever, my code is like that;

<%
Lcode = request.form("Lcode")
response.write Lcode
%>

but the element in the form-combobox-is multiple-select-allowed. Acording to this, Lcode that I am trying to write is returning a result like
MSC10301, MSC10302,...

I want to seperate these codes like;
MSC10301
MSC10302
...

I am asking about that. Because I will return an Insert query after receiving Lcode and seperate it that Lcode is the Primary key.
Dec 14 '06 #3

P: 7
Actually I am talking about ASP request. Whatever, my code is like that;

<%
Lcode = request.form("Lcode")
response.write Lcode
%>

but the element in the form-combobox-is multiple-select-allowed. Acording to this, Lcode that I am trying to write is returning a result like
MSC10301, MSC10302,...

I want to seperate these codes like;
MSC10301
MSC10302
...

I am asking about that. Because I will return an Insert query after receiving Lcode and seperate it that Lcode is the Primary key.
Ok i solved the problem
: )
it was very easy
: D
these r the codes...
: D

<%

function virguleGoreKelimeSayisi(nesne)

vs = 0 'NUMBER OF SEPERATORS IN THE STRING
if Len(nesne) > 0 then
for basla = 1 to Len(nesne)

if Mid(nesne,basla,1) = "," then
vs=vs+1
end if

next

end if

virguleGoreKelimeSayisi = vs+1
end function

function cokluGelenAyir(gelenler, kacinciKelime)
gelenler = gelenler&","
s = array( g0, g1 , g2 , g3 , g4 ) '5 ARRAY FOR 5 WORDS

kelimeNo = 0 'NUMBER FOR EVERY WORD
for start = 1 to Len(gelenler)
if Mid(gelenler,start,1) <> "," then
kelime = kelime&Mid(gelenler,start,1)
elseif Mid(gelenler,start,1) = "," then
s(kelimeNo) = kelime
kelime = Null
kelimeNo = kelimeNo + 1
start = start+1
end if
next
cokluGelenAyir = s(kacinciKelime-1)
end function

%>
Dec 15 '06 #4

Post your reply

Sign in to post your reply or Sign up for a free account.