Posts

excel vba - VBA: Get name of variable -

is there function or property variables name? something like msgbox myvariable.name or msgbox nameofvariable(myvariable) that returns "myvariable" when defined e.g. myvariable = "whatever" ? google brings questions variable referencing... a possible class approach following (commented): add class module in vba ide click insert-> class module click view -> property window enter (name) property textbox , type in "variable" (or whatever may prefer consistent in following steps) enter following code in class code pane option explicit 'declare fields attached every instance of class public name string '<--| store name of variable you'll set object of class public value variant '<--| store value associated variable you'll set object of class 'declare `method` write `value` of object in named range named after `name` field sub writerange(optional wb variant) '<--| can pass referen...

jquery - Prevent "content script runtime.onMessage: tabupdate" on firefox -

in project using bootstrap modals , tables. found requests page showing error content script runtime.onmessage: tabupdate on file moz-extension://cda0358a-3bec-4b1f-bb1c-3b6865f041e2/javascripts/content_script.js i can't understand why showing , how prevent it( it showing in mozilla firefox only ). , didn't find suitable also. is possible prevent error? any appreciatd. duplicated how disable content_script.js in firefox..? . the console messages being caused awesome screenshot addon. disable , they'll stop.

insert in database in fragment by button in android studio -

my app contain fragment class , db class , mainactivity class .......when click insert button show "data not inserted",,,,,,i not understand......where problem...........this code: mainactivity class: package ir.hashem.navfragtest; @override protected void oncreate(bundle savedinstancestate) { super.oncreate(savedinstancestate); setcontentview(r.layout.activity_main); toolbar toolbar = (toolbar) findviewbyid(r.id.toolbar); setsupportactionbar(toolbar); floatingactionbutton fab = (floatingactionbutton) findviewbyid(r.id.fab); fab.setonclicklistener(new view.onclicklistener() { @override public void onclick(view view) { snackbar.make(view, "replace own action", snackbar.length_long) .setaction("action", null).show(); } }); drawerlayout drawer = (drawerlayout) findviewbyid(r.id.drawer_layout); actionbardrawertoggle toggle = new actionbardrawertoggle( ...

Gwt Super Dev Mode on IE8 - "Dev Mode On button -

i trying use super dev mode on ie8, cant understand how add "dev mode on" button, tried import chrome failed. maybe working differently on ie? what version of gwt using ? buttons aren't needed anymore since pretty long time (something 2 years).

c# - Sorting a list by parent/child relations ship so I have definitely processed a parent before I try to process the child -

i have system people can sent me list<productcategory> . i need mapping system , save these database. the incoming data in format: public string externalcategoryid { get; set; } public string externalcategoryname { get; set; } public string externalcategoryparentid { get; set; } the incoming list in no particular order. if externalcategoryparentid null top level category. parent child relationship can depth - i.e. technology > tvs > samsung > 3d > 40" > etc > etc when i'm saving need ensure i've saved parent - can't save tvs until have saved technology. externalcategoryid int has no relevance on parent child relationship (a parent can have higher or lower id child). how can order list can loop through , child, have processed it's parent. the way can think of externalcategoryparentid == null externalcategoryparentid in "top level" list, next set of children... etc. can't best solution. i'd prefer sort f...

javascript - I want to spin the icons currectly on click on corresponding icon -

in html code have tried rotate icon 180 degree on click on corresponding icon , return when click on other icon or outside. the problem here that first icon not return when click on second , second not return either click on first icon or click on outside.i want fix it. how can fix problem?. function rotate(e){ document.getelementbyid("me").classname="spinner in fa fa-caret-down"; e.stoppropagation(); } function resetrotation(){ document.getelementbyid("me").classname="spinner out fa fa-caret-down"; } document.addeventlistener('click', resetrotation); function rotatea(e){ document.getelementbyid("you").classname="spinner in fa fa-caret-down"; e.stoppropagation(); } .spinner { transition: 0.5s linear; } .spinner.in{ transform: rotate(180deg); } .spinner.out{ transform: rotate(0deg); } <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/b...

asp.net - Trying to fill a textbox depending on the selected value on my dropdownlist -

im new asp.net mvc. , ive been searching 2 hours , cant seem it. have dropdownlist of products database. want fill textbox description on realtime depending on selected item on dropdownlist. here have far: populate dropdown list public actionresult index() { ienumerable<selectlistitem> items = db.products.select(i => new selectlistitem { value = i.productname, text = i.productname } ); viewbag.productitems = items; return view(); } my dropdown list @using (ajax.beginform("getdescriptionbyproductname", "purchaseorder", new ajaxoptions{ insertionmode = insertionmode.replace,updatetargetid = "description"})) { @html.dropdownlist("productitems", (selectlist)viewbag.values, new { onchange = "this.form.submit();" }) } here actionresult in controller [httppost] public actionresult getdescriptionbyproductname(string...