IRC Networks
Irc Logs Stats
Start date: 2007-09-27 02:48:27
Last update: 2008-10-24 20:19:38
Channels: 41
Logged Lines: 6230436
Size: 1825.68 MB
Powered by
Channel Info
Network: freenodeChannel: #csharp |
Search in www.irclog.org
Log from #csharp at freenode 2006-07-27
[15:44]<svzz[wjzc]>hum!? let me check out
[15:44]<fyfuym-syfggag>page - ing
[15:44]<eyccue>paging
[15:44]<fyfuym-syfggag>fuck I spell like a monkey
[15:44]<rwyfcygs>StaZ[work]: Dude, comboboxes are mondo heavy on resources anyway
[15:44]<eyccue>no, monkeys spell like this: wIEFH8OP0WHWGSDF
[15:45]<drygq>smellyhippy & others: http://pastebin.ca/102221
[15:45]<rwyfcygs>StaZ[work]: I think they eat something like 32KB apiece.
[15:45]<drygq>any idea about what im doing wrong? ^^ > if you do see what i want to do..
[15:45]<rfffgdrgwq19>can you parse a string to operator ???
[15:45]<rwyfcygs>StaZ[work]: How about floating one above the row being edited and use that one for all rows?
[15:45]<svzz[wjzc]>awilkins well Access 2000's combobox could handle 16k rows in a 0.05 seconds, in the exact same situation (datagrid comboboc column)
[15:45]<eyccue>Appleman1234: again, in English?
[15:46]<rfffgdrgwq19>int.parse() parses a string to a integer
[15:46]<eyccue>right
[15:46]<rfffgdrgwq19>I want to know if there is a parse function for changing a string into an operator like =
[15:46]<rfffgdrgwq19>or +=
[15:46]<mjzymygo>??
[15:46]<rfffgdrgwq19>or + or * or >
[15:46]<eyccue>Appleman1234: and what class would that operator have?
[15:46]<rfffgdrgwq19>not sure
[15:46]<mjzymygo>wtf?
[15:46]<sdnffdxdlld>wtf are you doing putting 16k rows into a combo box :P
[15:47]<eyccue>Appleman1234: short answer: no.
[15:47]<rfffgdrgwq19>??
[15:47]<svzz[wjzc]>Appleman1234 you better start from the beginnning
[15:47]<rfffgdrgwq19>??
[15:47]<rfffgdrgwq19>So, is that a no
[15:47]<eyccue>Appleman1234: maybe you should write a class called Operator, which has a method Parse()
[15:47]<rfffgdrgwq19>ok
[15:47]<rfffgdrgwq19>would that work
[15:47]<eyccue>um
[15:47]<svzz[wjzc]>smellyhippy well one of my table's field is a Foreigh key, coming from a table with 16 rows maybe?
[15:47]<eyccue>in what sense, work?
[15:47]<mjzymygo>Appleman1234@ what you trying to do?
[15:47]<svzz[wjzc]>* 16K rows
[15:48]<sdnffdxdlld>StaZ[home]: how would a user find the row they want from 16k rows?
[15:48]<svzz[wjzc]>smellyhippy typing it
[15:48]<sdnffdxdlld>wheres your usability :P
[15:48]<svzz[wjzc]>typing with autocompletion
[15:48]<mjzymygo>smellyhippy: I already had this convo with Staz....
[15:48]<rfffgdrgwq19>I have made a calculator , that you give two v ariables as arguements by typing in console
[15:48]<sdnffdxdlld>ahhh well then why use a combobox ... why not use an autocompleating textbox
[15:48]<rfffgdrgwq19>I want to also specify the operation the same way in console
[15:48]<fyfuym-syfggag>fuck I need something to code
[15:48]<fyfuym-syfggag>:(
[15:48]<fyfuym-syfggag>boredness
[15:49]<svzz[wjzc]>Moridin8 yeah finally i canM't split my choices in more than one combos like i thought i could do
[15:49]<rfffgdrgwq19>As I used int.parse string to integer
[15:49]<mjzymygo>Appleman1234: you trying to do this type of thing: http://en.wikipedia.org/wiki/Infix_notation
[15:49]<svzz[wjzc]>awilkins that floating thing might be interesting though... :-/
[15:49]<rwyfcygs_>StaZ[work]: I think Access might have used the same trick though ; a single combobox per column that only gets used on the row you are editing.
[15:49]<rfffgdrgwq19>I wondered wheter there was a function to pass string to operator
[15:49]<mjzymygo>where a string "2 + 2" would be calculated to = 4?
[15:49]<rfffgdrgwq19>not exactly
[15:50]<rwyfcygs_>Used to do that trick for a grid control with no intrinsic editing features
[15:50]<svzz[wjzc]>awilkins how come the ALMIGHTY .NET 2.0 didn't think about doing that
[15:50]<rfffgdrgwq19>Moridin8: kind of
[15:50]<rfffgdrgwq19>but
[15:50]<rwyfcygs_>But it would report the position and size of the cell for your pleasure
[15:50]<rfffgdrgwq19>Let x be: type x, Let y be : type y, Let operation be : type operation
[15:51]<rfffgdrgwq19>when x is 2 and y is 3 and operation is +
[15:51]<rfffgdrgwq19>answer is 5
[15:51]<svzz[wjzc]>Appleman1234 i'd use an enum
[15:51]<rfffgdrgwq19>Thanks
[15:51]<rfffgdrgwq19>I will look into that
[15:51]<svzz[wjzc]>OperatorEnum { Add, Substract, Multiply, Divide }
[15:51]<rfffgdrgwq19>I am new C#
[15:52]<rfffgdrgwq19>That seems good Staz, thank you :)
[15:52]<drygq>smellyhippy: any idea about what im doing wrong? http://pastebin.ca/102221
[15:52]<drygq>the purpose must be clear..
[15:52]<svzz[wjzc]>then you do OperatorEnum MyOpertator = OperatorEnum.Add; then in your rendering method -> switch (MyOperator) case OperatorEnum.add : return X + Y; break;
[15:53]<svzz[wjzc]>rikkus hum?
[15:53]<drygq>|^o_o^|: google
[15:53]<drygq>this is C#
[15:53]<rfffgdrgwq19>grr
[15:53]<zyccus>|^o_o^|: yes, use something like paint shop pro, gimp, ...
[15:53]<fyfuym-syfggag>system.io.file does not do renaming?
[15:53]<fyfuym-syfggag>wtf
[15:53]<rfffgdrgwq19>Staz: I am already using switch case
[15:53]<rfffgdrgwq19>I wanted to avoid switch case
[15:53]<drygq>Liquid-Silence: move maybe?
[15:53]<svzz[wjzc]>Appleman1234 well that's the only way i see that you can do
[15:53]<fyfuym-syfggag>gheiness
[15:54]<svzz[wjzc]>though it's "cleaner" and "prettier" with an enum than a bunch of strings
[15:54]<rfffgdrgwq19>Staz: ok, back to square one, I can't do what I want due to language limitation
[15:54]<zyccus>Appleman1234: you can, and there's no language limitation
[15:54]<fyfuym-syfggag>main2 do yourself a favour
[15:55]<fyfuym-syfggag>and use Nhibernate
[15:55]<svzz[wjzc]>well there's no language i know that will parse and operator... the closer i can see is the Eval() function, in Javascript iirc, that will return 5 with Eval("2 + 3")
[15:55]<rfffgdrgwq19>rikkus: How then ?
[15:55]<zyccus>Appleman1234: if you want to do it properly, you need to write a proper parser, which tokenises the input, turns it into postfix notation, then puts operators and operands on a stack, and has them execute
[15:56]<rfffgdrgwq19>rikikus: Okay
[15:56]<zyccus>Appleman1234: but that requires some 'proper' programming
[15:56]<zyccus>Appleman1234: there will be a million examples on google of how people have done that in various langauges
[15:56]<rfffgdrgwq19>rikkus: I am not sure why
[15:56]<rfffgdrgwq19>I am giving the tokens seperately
[15:56]<drygq>|^o_o^|.. ahh you would like to do this in a automated way
[15:57]<drygq>well.. no idea to be honest - adobe provides dev tools
[15:57]<rfffgdrgwq19>All I want to do is convert string to operator so I can concatenate them







