parameters

Retrieve input and output parameters for SQL stored procs and functions?

For a given SQL stored proc or function, I'm trying to obtain its input and output parameters, where applicable, in a Winforms app I'm creating to browse objects and display their parameters and other attributes. So far I've discovered the SQL system function object_definition, which takes a given sysobjects.id and returns the text of t...

jQuery Flow Control (if then from URL params)

Strangely enough I am more familiar with jQuery than I am with javascript. I need to be able to add a class to the body tag of a document depending on what specific forum page i'm on in a phpbb forum. Due to the nature of phpbb I can't actually do this flow control in php, so I am using jquery. Here's my code (the first part is an ex...

Read an external settings/parameters file from installer project?

I have created an installer project in VS2008 and need to supply a settings/parameters file along with the .msi/exe file; is this possible? The settingsfile will basically contain some information that is needed in the configuration and our different clients can control the settingsfile. ...

Custom SSRS Parameter Metadata

Is there any way to add custom metadata to SSRS 2008 report paramaters? I am using SSRS as my reporting backend, ASP.NET MVC to render parameter inputs and the report viewer to render the report output. I need to set display order/layout metadata for each parameter to use when rendering the parameters. At this point, I'm only using th...

How do you assign the value of a parameter to a variable in UNIX?

#!/bin/bash if [ ! $1 ] then echo "no param" else set FAV_COLOR=$1 echo "My fav color is ${FAV_COLOR}" fi This is not working how i expected: >favcol.sh blue My fav color is FAV_COLOR=blue any thoughts? ...

executable parameter c++

if i got a c++ executable file like this: executable.exe and i want to add some parameters like: executable.exe +username = pino how do i get in c++ that i filled in pino as my username? ...

In Applescript, why do local variables in handlers capture "with" labeled parameters?

In Applescript, if you declare a handler using "with" labeled parameters, local variables get the values of the arguments and the parameters themselves are undefined. For example: on bam of thing with frst and scnd local eat_frst return {thing: thing, frst:frst, scnd:scnd} -- this line throws an error end bam bam of "bug-AWWK!" ...

How can pass parameters to a flash Movie in Delphi 2010?

I have imported the ShockWave flash Activex Control in my Delphi project. I can manipulate All the properties of a Flash movie file. But I need to define my own Parameters in the my own Flash file and Manipulate those parameters in the Delphi project. I know that passing parameters to a flash file is possible in the HTML script. But my p...

How can you pass URL Parameters at URL slashed address? (www.web.com/1/2 = www.web.com?x=1&y=2)

I want to be able to take a url and map it to a set of web parameters. For example: www.web.com/1/2/3 would be interpreted as www.web.com/default.asp?x=1&y=2&z=3 I know I've seen it done, I just can't find it anymore. Any ideas? ...

Eclipse - How to show warning for unused method parameter ?

I am using Eclipse v3.5. In previous Eclipse versions i remember if i have defined a method with a parameter and didn't use it internally a warning appears, like this : public void myMethod( int x ) { // Didn't use x here so a warning appears at the x parameter. } But in v3.5 i do not see this warning. How can i enable it in Eclips...

How do I pass a lot of parameters to views in Django?

I'm very new to Django and I'm trying to build an application to present my data in tables and charts. Till now my learning process went very smooth, but now I'm a bit stuck. My pageview retrieves large amounts of data from a database and puts it in the context. The template then generates different html-tables. So far so good. Now I wa...

Noob filter: How do I refer to a string that is passed to my Ruby on Rails method from Flex as a HTTPService?

EDIT: Got too confusing with so many different edits, so this is where I'm currently at. I have a HTTPService in my Flex 4 app defined as follows: <s:HTTPService id="getUserDetails" url="http://localhost:3000/users/getDetails" method="GET"/> I call this service like this (note: I've checked the network monitor in Flash Builder 4 and...

[Apache] How to rewrite url to multiple query parameters?

How to rewrite a url like: http://domain.com/class/method/parameter1/parameter2/.../parameterN to http://domain.com/index.php?c=class&amp;m=method&amp;p1=parameter1&amp;...&amp;pN=parameterN The main idea is to create the possibility of using unlimited number of query parameters. Thanks. ...

How to get all string format parameters

Is there a way to get all format parameters of a string? I have this string: "{0} test {0} test2 {1} test3 {2:####}" The result should be a list: {0} {0} {1} {2:####} Is there any built in functionality in .net that supports this? ...

Set Java Application's virtual machine max memory without access to VM parameters because of custom launcher?

I'm using a Java application which allows you to import custom files. On import, these files are loaded into memory. The problem is that the files I want to import are very big, this causes an OutOfMemory exception. The crash log also informs me that the VM was started with the java parameter "-Xmx512m", I want to alter this to "-Xmx102...

Passing parameter to base class constructor or using instance variable?

All classes derived from a certain base class have to define an attribute called "path". In the sense of duck typing I could rely upon definition in the subclasses: class Base: pass # no "path" variable here def Sub(Base): def __init__(self): self.path = "something/" Another possiblity would be to use the base class c...

How to get the parameter names of an object's constructors (reflection)?

Say I somehow got an object reference from an other class: Object myObj = anObject; Now I can get the class of this object: Class objClass = myObj.getClass(); Now, I can get all constructors of this class: Constructor[] constructors = objClass.getConstructors(); Now, I can loop every constructor: if (constructors.length > 0) { ...

Java static method parameters

Why does the following code return 100 100 1 1 1 and not 100 1 1 1 1 ? public class Hotel { private int roomNr; public Hotel(int roomNr) { this.roomNr = roomNr; } public int getRoomNr() { return this.roomNr; } static Hotel doStuff(Hotel hotel) { hotel = new Hotel(1); return hotel; } public static void main(String arg...

WiX - Passing parameters to a CustomAction (DLL)

I've got a DLL from an old WiSE installer that i'm trying to get working in WiX, so i'm pretty sure the DLL works with MSI-based installers. Here is my definition: <Binary Id="SetupDLL" SourceFile="../Tools/Setup.dll" /> <CustomAction Id="ReadConfigFiles" BinaryKey="SetupDLL" DllEntry="readConfigFiles" /> and usage: <Publish Dialog=...

ADO.NET parameters from TextBox

I'm trying to call a parameterized stored procedure from SQL Server 2005 in my C# Winforms app. I add the parameters from TextBoxeslike so (there are 88 of them): cmd.Parameters.Add("@CustomerName", SqlDbType.VarChar, 100).Value = CustomerName.Text; I get the following exception: "System.InvalidCastException: Failed to convert parame...