@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet


Comments:

<0> *throws a sock in Teycho open mouth*
<0> oh.. there is no porn p***words in this channel? what am i doing here then?
<1> were should GUID generation take place in the BL?
<1> Bussiness Object
<1> ahh **** it



<1> !list
<2> is it possible in asp to do something like : if formfield0=empty AND formfield1=empty and formfield2<>empty then goto procedure 1. if formfield0=empty AND formfield1<>empty and formfield2=empty then goto procedure 2. .... as I have 9 or 10 options I could keep a better overview on it.
<3> going to need bunch of ifs
<3> not much of a way around it
<3> or... build a string based on the values
<3> if ff1 = "" then str = str & "0" Else str = str & "1"
<3> Then, you can select case that string
<3> case "001"
<3> case "111"
<3> case "101"
<3> easier to read
<4> bitmask for the win
<3> huzzah!
<2> but sometimes in the 'procedure' some methods are coming back and it might be stupid to retype hundreds of lines of code each time. is there a way to solve it maybe?
<4> ?
<2> well in fact it is more like : if ff1=0 and ff2=0 then perform A and B, if ff1<>0 and ff2=0 then perform B and C . (or something like it)
<2> and procedure B is +-800lines of code
<4> so as Teycho said ..
<3> my example is still valid
<3> okey, how about this



<3> if formfield1 = "" Then ff1 = "0" Else ff1 = "1"
<3> if formfield2 = "" Then ff2 = "0" Else ff2 = "1"
<3> allFF = ff1 & ff2 & ff3 & ...
<3> Select case allFF
<3> Case "000"
<3> *do this*
<3> Case "101"
<3> *do this*
<3> End Select
<3> etc
<3> basically, it's just a method to save a ****ton of typing
<3> because this way, you can also use ff1 and ff2 separately
<2> but in lets saye case "000", case "010", case "100" I have to perform procedure B. Do I have to copy the procedures each time in these cases ?
<4> ?
<4> case "000","010","100": procName()
<2> yes , so there is something like procedures in ASP ?
<2> which I can CALL ?
<3> Of course
<3> Public Sub/Function procName
<2> ok thank you.
<2> hope I can get it to work :)
<4> no editable combobox in html?
<3> aroo?


Name:

Comments:

Please enter the result of the sum 63 + 46 (to avoid spam):






Return to #asp
or
Go to some related logs:

#allnitecafe
#chat-world
unknown_beauty japan
what is kdesu
#kl
LaNeTLiCoCuK
#chat-world
#india
#worldchat
#india



Home  |  disclaimer  |  contact  |  submit quotes