58 Topics

Member Avatar for
Member Avatar for WolfShield

I have a lot more code than I'm going to post here, but I am posting the relevant parts. What I have is a Calculator program. Here's the code: [CODE=Python] num1 = None num2 = None oper = None def calculate(num1, num2, oper): print("calculate() called") if(oper=="+"): answ = Decimal(num1) + …

Member Avatar for woooee
0
254
Member Avatar for george61

This problem is about passing parameters between functions(define neighbour elements and acess these elements) Here is some HTML [CODE] <ul class="listing"> <li><a href="imgs/eli.jpg" id="1" class="lightbox" onclick="defineNeighbours(this.id);"><img src="thumbs/eli_t.jpg" width="150" height="100" class="images" /></a></li> <li><a href="imgs/ggallin.jpg" id="2" class="lightbox" onclick="defineNeighbours(this.id);"><img src="thumbs/ggallin_t.jpg" width="150" height="100" class="images" /></a></li> <li><a href="imgs/jontarata.jpg" id="3" class="lightbox" onclick="defineNeighbours(this.id);"><img src="thumbs/jontarata_t.jpg" width="150" height="100" class="images" …

Member Avatar for Airshow
0
146
Member Avatar for gunnarflax

Since no one answered to my previous thread about a similar issue I rephrase the problem and try my luck again :) I have rather recently started working with prepared MySQLi-statements in php. From what I've learned is it supposed to be much more effective and secure so I've tried …

0
155
Member Avatar for EricIskhakov

Hello. I have a gridview with an ImageButton that acts as an Update Command to a DataSource. and the SP works if i execute it in the server with parameters, but not through the ImageButton. I Suspect that the Parameters arn't bein sent because if i set a Default Value …

Member Avatar for EricIskhakov
0
176
Member Avatar for MasterMic

I'm attempting to recreate the Unix shell program "todo.txt" using C++ on Windows. An example use of my program in the Command Prompt would be: [CODE]>todo /A "I like cheese."[/CODE] which would append the item "I like cheese." to the file "todo.txt". In my program, there is a line which …

Member Avatar for MasterMic
0
233
Member Avatar for emily1989

Hi there, I am new to VB.Net, i have cracked my brain to figure out on how to use if else statements in form1 to call button.click from another class. Please help me! :( THANK YOU SO MUCH! I REALLY APPRECIATE IT! :)

Member Avatar for Ranx
0
372
Member Avatar for mlotis

So I'm creating a website for bar deals... I've tried for hours trying to get the url to take in more than one parameter with no luck, I don't know if my database isn't setup correctly or something but the url would look like this [url]http://www.site.com/?id=1&day=Monday[/url] and when those parameters …

Member Avatar for codewall
0
90
Member Avatar for Ender330

Help!!! Ok I have been on this problem all day. Searching and Searching and just when I thought I had it...the script didn't work as it was supposed to. My URL looks like this: [CODE]http://mysite.com/joinform.php?Email=mymail@gmail.com&Username=newuser&Password=12345678 [/CODE] I need to parse the email, username and password from the url into the …

Member Avatar for Airshow
0
217
Member Avatar for Doshag

Hello there! I am new to Java and DW, though I usually find great help already here! Say I need a constructor that accepts [COLOR="red"]variable number of parameters[/COLOR] up to 2 parameters, but if I pass only one parameter to this constructor, both parameters will take this number, and if …

Member Avatar for Doshag
0
173
Member Avatar for tKc

I am trying to learn parameters by reference. In my code i try to compute the sum between 1 and n. This is what i got so far and if i input 5 it outputs a extremely high number. Any suggestions? [CODE] #include <iostream> #include <cmath> using namespace std; void …

Member Avatar for csurfer
0
131
Member Avatar for uzn

This is the error when i try to execute my code "Procedure or function 'Get Customer data' expects parameter '@Name', which was not supplied." [CODE]objCommand.CommandType = CommandType.StoredProcedure objCommand.CommandText = "GetCustomerData" Dim ObjParam1 As New SqlParameter("@Name", SqlDbType.VarChar, 2000) ObjParam1.Value = ID.ToString() Dim da As New SqlDataAdapter(objCommand) Dim dt As New DataTable …

Member Avatar for crapulency
0
163
Member Avatar for nerdygirl118

Function arguments and parameters are paired by name, therefore, names of corresponding arguments and parameters must be identical. Why is this statement false? Also, in cin.ignore (200, '\n'); why is the 200 there? what does it do?

Member Avatar for Ancient Dragon
0
87
Member Avatar for davibq

Hi, im trying to get the parameters from the command line when the program is executed. I know that the PSP have a DTA and it is stored in the DS:[80h], but i dont know how to save the parameter somewhere and use it before. I think I should use …

-1
81
Member Avatar for end3r

Hy, I have a .properties file with a key-value defined like this: [icode]my_property.value=text text text bla bla bla {0} qwerty {1}.[/icode] I need to know what class should I use if I want to read the value and insert parameters in {0} and {1}. In the past I used to …

Member Avatar for end3r
0
4K
Member Avatar for msrd

I'm trying to figure out how to pass a parameter to a report in VB... [URL="http://screencast.com/t/MjBhYjYxOTM"]http://screencast.com/t/MjBhYjYxOTM[/URL] I've looked at the microsoft library on the report viewer class, but it's only slightly better than a boat anchor... does anyone have any other useful tips on how to figure this out?

0
107
Member Avatar for DeadLikeMe

Hi, i have a problem with this code. I wanted to add the values of the parameters at the beginning to the URL entered in the code. i already tried confirmation.php?username=$username added the ?username=$_GET[username] but the Url in the browser is displayed like it's written in the php file and …

Member Avatar for DeadLikeMe
0
188
Member Avatar for Dudeman3000

So I have a method that gets a Dictionary of `List&lt;myObj&gt;`, then cycles through the keys of the dictionary and passes each `List&lt;myObj&gt;` to a separate thread. Here is some Code / Psuedo-Code: public static void ProcessEntries() { Dictionary<string, List<myObj>> myDictionary = GetDictionary(); foreach(string key in myDictionary.keys) { List<myObj> myList …

Member Avatar for nick.crane
0
147
Member Avatar for leiger

I am attempting to access an XML-RPC API method using a Java client. I'm fairly certain that the server is written in Python. The API is part of the wiki farm Wikidot.com API info: [url]http://www.wikidot.com/doc:api[/url] API method info: [url]http://www.wikidot.com/doc:api-methods[/url] Does anyone here know what the equivalent of this statement is …

Member Avatar for leiger
0
540
Member Avatar for sastudent

Me again (Huge Project...) This is the code for my image upload, but it is not working... I also want to set some parameters such as file size and to make sure that only photos are uploaded. The tutorials on the web is quite confusing...help please. Thank you [CODE]if(isset($_POST['submitted'])) { …

Member Avatar for pzuurveen
0
126
Member Avatar for tuomari

Hi! I have been looking into this the whole day, and I haven't found any good straight answers to my problem. So what i am trying to do, is that I have a XML file where i have defined for example what is the name of the column (In this …

Member Avatar for kvprajapati
0
193
Member Avatar for TrustyTony

I optimized very carefully program I was producing by producing the main tight loop functions half a dozen times with various implementation styles. Also i considered amount of passing information in call hierarchy in parameters or letting functions to trust proper initialization of the global variables. I got few interesting …

0
109
Member Avatar for peter_budo

I have little bizarre problem. Working in Java web development we have project that we use plenty of templates from Velocity. Where one template can refresh section of it self and display one or more templates. My problems is that in parent template I have to pop up window with …

Member Avatar for Donall
0
121
Member Avatar for flashkarni

hello, i'm having trouble printing arrays to file. each time i run this code, i get only two results max. if the array has 2 genres, i get them but no languages. if the array has 1 genre i get it and only 1 language. if the array has more …

Member Avatar for d5e5
0
127
Member Avatar for ace8957

Hi everyone I am trying to write a program that will allow to people to play tic tac toe. My constraints are that this must be accomplished mainly through the use of functions and that the default cell field for the displayed game board must be stars. I am having …

Member Avatar for ace8957
0
3K
Member Avatar for Waylon

Hello! I'm working on this roguelike and I'm trying to make it so that the different "maps" can be loaded from text files. It was going pretty good until I tried to get it to return the filled array. Take a look: [CODE]void getMap(string str[10][10]){ ifstream myfile("world1.txt"); int a = …

Member Avatar for Lerner
0
90
Member Avatar for feoperro

Hi, I've been searching around for quite some time now but haven't found what I've been looking for... I'm trying to stretch a flash object inside my browser but for some reason the more I stretch it, the bigger the boarders get while the actual movie on the inside stays …

Member Avatar for feoperro
0
217
Member Avatar for feoperro

Hi, I'm trying to figure out how to pass parameters across JSP pages without using links. For some reason, I can only get null across... Here is my code: Page 1 [CODE] <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>Test Page</title> </head> <body> <form name="testForm" action="Test.jsp"> <select name='tableSelect' onChange='testForm.submit();' style="text-align:center"> <option …

Member Avatar for javaAddict
0
137
Member Avatar for nunos

I was reading 'Starting Python' trying out in the shell some of the examples. However, I get an error with this [URL="http://www.daniweb.com/forums/post116650.html#post116650"]one[/URL]. What am I doing wrong? [code=python] >>> def sum_average(*args): size = len(args) sum1 = sum(args) average = sum1/float(size) # return a tuple of three arguments # args is …

Member Avatar for woooee
0
129

The End.