Posts

c# list and enumerator with properties -

i have following problem: have list , add string items list. create enumerator out of list. when loop through list movenext() command works when access enumerator directly. when use enumerator properties access enumerator doesn't work. movenext() command doesn't increment index. here code used. lot help. public class dummyklasse { public list<string>.enumerator enumerator; public list<string> list; public dummyklasse() { console.writeline("test"); list = new list<string>(); enumerator = new list<string>.enumerator(); } public list<string>.enumerator enumerator { { return enumerator; } set { enumerator = value;} } public list<string> list { { return list; } set { list = new list<string>(value); } } public void dummyfunction() { list.add("test1"); list.add("test2")...

c# - Microsoft.Office.Interop.Word how to stop the file opening -

i have bunch of word documents want read , text value in string.i trying to microsoft.office.interop.word code looking similar one: var wordapp = new word.application(); object file = filename; object nullobj = system.reflection.missing.value; word.document doc = wordapp.documents.open(ref file, ref nullobj, ref nullobj, ref nullobj, ref nullobj, ref nullobj, ref nullobj, ref nullobj, ref nullobj, ref nullobj, ref nullobj, ref nullobj); doc.activewindow.selection.wholestory(); doc.activewindow.selection.copy(); idataobject data = clipboard.getdataobject(); doc.close(); and @ the: word.document doc = wordapp.documents.open line prompts me opening file(with few options including:"open read copy" etc.) code works fine me besides fact opens document.is there way content without opening it? want object have data loaded inside of don't want ...

Getting Logs from child project created in Jenkins Parameterized Build Plugin for Email Ext plugin -

i have created parent child project in jenkins using parameterized build plugin problem faced when attaching logs our team whenever build fail. the email-ext plugin sending email build log of parent project calling project , not logs of child project. any highly appreciated. ok got solution. need discard pramaeterized plugin using build flow plugin [https://wiki.jenkins-ci.org/display/jenkins/build+flow+plugin] the benefit is giving me log placed in parent job without modification in child project. the usage follows: def today = new date() out.println '----------------- build started @ '+ today+ '----------------------------' b=build("<basebuild>",parentworkspace:build.properties["workspace"],param:"value") today=new date() out.println '-------- build log -------------- ' out.println b.log out.println '----------------- build ended @ '+ today+ '----------------------------' ...

swing - java.lang.ArrayIndexOutOfBoundsException: 0 >= 0 -

here complete code: stat = con.preparestatement("select exceltable.payorbankroutno, exceltable.amount, exceltable.accountno, exceltable.serialno, exceltable.presentingbankroutno, exceltable.presentmentdate exceltable exceltable.creationdate = ? inner join (select payorbankroutno, amount, accountno, serialno exceltable group payorbankroutno, amount, accountno, serialno having (count(payorbankroutno) > 1) , (count(amount) > 1) , (count(accountno) > 1) , (count(serialno) > 1)) dup on exceltable.payorbankroutno = dup.payorbankroutno , exceltable.amount = dup.amount , exceltable.accountno = dup.accountno , exceltable.serialno = dup.serialno order exceltable.serialno"); stat.setstring(1, datename); rs = stat.executequery(); metadata = rs.getmetadata(); li_cols = metadata.getcolumncount(); allrows = new vector(); while(rs.next()) { vector newrow = new vector(); ...

internet explorer - jQuery loading and rendering incorrectly on different PCs -

when try run webpage on browser/test in other browsers, work no bugs or error messages. include ie6,7,8,9,10,newer versions of firefox, , chrome. typically, today, decided run on bosses pc , - guessed - went kaput straight away. have simple jquery hover-over effect expands menu. not work on internet explorer 10 or firefox 22.0. after turning on ie dev tools , waiting ~30seconds following error message received on pc, not mine : script5009: 'jquery' undefined jquery.easing.1.3.js, line 39 character 1 script5009: '$' undefined slidedownboxmenu, line 142 character 13 the end of index.html looks : <!-- javascript --> <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script> <script type="text/javascript" src="jquery.easing.1.3.js"></script> <script type="text/javascript"> $(func...

Dynamic Pivot for multiple columns in SQL Server 2000 -

i know, bad etiquette post same question link in other forum, here question link : http://www.sqlservercentral.com/forums/topic1474579-8-1.aspx microsoft sql server 2000 - 8.00.2039 (intel x86) may 3 2005 23:18:38 copyright (c) 1988-2003 microsoft corporation enterprise edition on windows nt 5.2 (build 3790: service pack 2) table structure , sample insert statements : create table consumption ( code varchar(6), prodname varchar(50), department varchar(20), netqty decimal(10,2), netmrp decimal(10,2) ) insert consumption values ('u00180','usg jelly im-k','sono',11.4,130.40) insert consumption values ('u00280','unidine 1 litre solution','akd',1.4,10.40) insert consumption values ('v02401','volini gel 50gm','physiotherapy',8,15) insert consumption values ('v02402','x ray film digital 14"x 17"','mri',3,26.40) insert consumption values ('u00380','tropac p drops ...

Does JavaScript's typeof function check for null -

does javascripts typeof expression check null? var test = {}; console.log(typeof test['test']);//"undefined" var test = null; console.log(typeof test['test']);//typeerror: test null obviously, why error, if typeof null object? edit: know how avoid type error, , null has no properties, i'm wondering there explanation behavior of typeof . var test = { test: null }; console.log(typeof test['test']);// object your code throws exception because reading property of null this: null['test']