dynamic

C++ Static array vs. Dynamic array?

What is the difference between a static array and a dynamic array in C++? I have to do an assignment for my class and it says not to use static arrays, only dynamic arrays. I've looked in the book and online, but I don't seem to understand. I thought static was created at compile time and dynamic at runtime, but I might be mistaken th...

Flex - How do I use a variable to define the name of an instantiated object

Essentially this is what I want to accomplish, however it doesn't work like this. Is there any solution: - The problem is I can't dynamically name a new object... ??? pulling my hair out. import views.printingView; public function initComponent(o:Array):void{ SomeObject::Array = o; for(i=0; i <=SomeObject.length-1; i++){ '...

When should one use dynamic keyword in c# 4.0?

When should one use dynamic keyword in c# 4.0?.......Any good example with dynamic keyword in c# 4.0 that explains its usage.... ...

how to create a one-dimensional dynamic array in c#?

noob question on c#: how to create a one-dimensional dynamic array? And how to change it later? thanks. ...

using javascript setTimeout to see if div has loaded

I'm loading remote data using dynamic script tags and JSON. the remote page that I'm displaying on my website has a div in it that I use to load content into. The problem is the javascript functions do not see the div as the page loads because it is remote data. if I set a timeout of about 300 it usually works and my javascipt can see t...

ComAutomationFactory

Im trying to use the ComAutomationFactory class in VB .NET the example im working from is c# and is working fine but my project doesnt compile and says this class is not defined?? also what is the return type? in the c# example it returns a type of dynamic but this type does not exist in vb .NET? ...

Flex 4: Dynamic ComboBox/List problem [object Object_Type] even with labelField defined

I am dynamically populating a ComboBox with an HTTPservice calling an XML file. This all works dandy through the Flash Build 4 interface. Below is the ComboBox code: <s:ComboBox id="cbSockOptions" change="cbSockOptions_changeHandler(event)" selectedIndex="1" enabled="true" creationComplete="cbSockOptions_creationComplete...

load base template passed on parameter

I have a site where different projects/programs are listed, the list is dynamic so once a user clicks on a specific program e.g. /program/health the template should load one that has a "health" specific header (mast head). How can I load a base template based on the program selected? ...

attaching id to a movieclip

I have a loop that creates mc from a database for (var i:Number = 0; i < t.length; i++) { var portfolioItem:PortfolioItem = new PortfolioItem(); addChild(portfolioItem); portfolioItem.name = t[i][0]; portfolioItem.addEventListener(MouseEvent.CLICK, getThisName); } public function getThisName(evt:Event) { trace(evt.target.name); } I...

help regarding dynamic redirect rule in htaccess

hi all, I need ur help for given subject. I am playing with htaccess rules first time in life. here is the scene - i want to redirect the urls - http://www.abc.com/var1 http://www.abc.com/var2 to follwing urls - http://www.abc.com/index.php?u=var1 http://www.abc.com/index.php?u=var2 In this case the values var1 & var2 can...

What is the 'dynamic' type in c# 4.0 used for?

C# 4.0 introduced a new type called 'dynamic'. It all sounds good but what would a programmer use it for? If anyone can think of a situation where it can save the day please tell me. ...

What's the proper workaround for creating a div with a table in it with images in the table?

I want this: <div id="display"> <div id="slideshow1"> <table cellspacing=0><tr><td style="height:200px;padding:0;vertical-align:middle"> <img ... /> </td></tr></table> </div> </div> And I'm using this: var thelistt = localStorage.getItem('thelist') var trt = document.createElement("div"); trt.setAttribu...

looping through object property names in actionscript

I have a dynamic class that I have created public dynamic class SiteZoneFileUploadVO { public var destination:String = "sitezone"; public var siteZoneId:uint; public var fileType:String; public var fileContents:String; public function SiteZoneFileUploadVO() { } } when I try to iterate over this obj...

Dynamically extend the height of the ListView row background image in android?

Hi, I am loading a listview dynamically. I have set a .9.png image as row background image. The main purpose of using .9.png image was to extend the height of the image dynamically according to the contents of the listview. But, the image is not getting extended. The contents which can be displayed within the height of the row are bein...

[PHP] Weird problem with dynamic method invocation

Hi everyone, this time, I'm facing a really weird problem. I've the following code: $xml = simplexml_load_file($this->interception_file); foreach($xml->children() as $class) { $path = str_replace('__CLASS_DIR__',CLASS_DIR,$class['path']); if(!is_file($path)) { throw new Exception('Bad configuration: file '.$path.' not f...

Dynamic class creation

Is is possible in runtime create class from DataTable where ColumnName will be dynamic class properties? ...

Struts2 : possible to use dynamic method invocation and specify different validation rules for different methods ?

I have in struts.xml : <action name="MyAction!*" class="my.Action" method="{1}"> <result name="step1">step1.jsp</result> <result name="step2">step2.jsp</result> <result name="error">error.jsp</result> </action> Then my my.Action class has various methods that can be called by specifying the nam...

Populating and Using Dynamic Classes in C#/.NET 4.0

In our application we're considering using dynamically generated classes to hold a lot of our data. The reason for doing this is that we have customers with tables that have different structures. So you could have a customer table called "DOG" (just making this up) that contains the columns "DOGID", "DOGNAME", "DOGTYPE", etc. Customer...

Dynamic typed language example using ANTLR

Hey all, I'm looking for some ANTLR v3 examples, I tried googling a bit but I found certain things which didn't fit my requirments. I found the Mantra project, but it's statically typed and is 'too' big for me at this moment, then I found 'pie' as interpreter, which is dynamically typed, which what I want, but it uses a syntax-directed ...

Partial overriding in Java (or dynamic overriding while overloading)

If I have a parent-child that defines some method .foo() like this: class Parent { public void foo(Parent arg) { System.out.println("foo in Function"); } } class Child extends Parent { public void foo(Child arg) { System.out.println("foo in ChildFunction"); } } When I called them like this: Child f = new Child();...