53 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for Stefce

How do i return an array with the file names from folder? I have this till now but doesn't work. function showFiles($path) { $folder = "gallery/$path"; $i = 0; if (is_dir($folder)) { if ($handle = opendir($folder)) { while (($file = readdir($handle)) != FALSE) { if ($file === "." || $file …

Member Avatar for Stefce
0
648
Member Avatar for westsiderailway

Hi Everyone. this is the last part of my function Case "December" If cbMonthly.SelectedItem = "December" Then Dim DecStart As String = "-12-01" Dim DecFin As String = "-01-01" M12S = String.Concat(Year, DecStart) M12F = String.Concat(Year, DecFin) End If End Select Dim Places As New List(Of String) Places.Add(M12S) Places.Add(M12F) Return …

Member Avatar for westsiderailway
0
295
Member Avatar for wfray

This code works perfectly in IE 7 and above. The PHP/HTML code has a button to delete/undelete some data. When the icon/button is clicked it enters the javascript function "setdelete". The following HTML code sets up the button for entry into the javascript function. <button id="$delete_icon" value="Delete" onclick="setdelete($key)"><img id="$m_d_img_name" src="images/x_undelete.ico"/></button> …

Member Avatar for wfray
0
306
Member Avatar for IsaacMessi10

onsubmit return false still submitting form HTML: <!DOCTYPE html> <head> <script src = "Scripts/script.js"></script> </head> <body> <form action = "http://posttestserver.com/post.php" method = "post" onsubmit = "return age()"> <label for = "dob">Date of Birth</label> <input class = "TextArea" type = "date" id = "dob" name = "dob" required/> <br/> <p><span id …

Member Avatar for IsaacMessi10
0
292
Member Avatar for Derek_4

I know I am probably over thinking this but I cannot seem to figure this out. I am trying to check if the value is null and if not to continue. /** * */ public Item getItem(String theItem) { Iterator iter = myItems.iterator(); while(iter.hasNext()) { Item anItem = (Item) iter.next(); …

Member Avatar for sebastianedu
0
294
Member Avatar for JohnKelly

Dear All I am using Vb.net to update a database running on SQL Server. I am using the following to increase the value of the NextPlan in the SystemControl table in a SQL database. Command.CommandText = "UPDATE SystemControl SET NextPlan = NextPlan + 1" Command.ExecuteNonQuery() Once the Command is executed …

Member Avatar for JohnKelly
0
719
Member Avatar for ROSS679

Hi, I am having a problem regarding the return statment, for some reason it is not working, can someone please tell me what i am doing wrong? The return is taking a selection of table collumns not all e.g. the simple return all "return $x" Thanks for $x in doc("Suppliers.xml")/dataroot/Suppliers[Country …

Member Avatar for FakeTales
0
352
Member Avatar for RascelleGrepo

Hi. I am working on my Online Examination project in my web development subject but I am having a hard time to code how to go back to my previous page where I put session on it. my online exam are categorize by subject then inside the subject there is …

Member Avatar for kindo
0
397
Member Avatar for l.worboyz

basically i am working on a project for uni, which is to create a form of an abacus model. - peg_array[] stores the number of counters/beads present in each of the pegs(lines) of the abacus. i am trying to use 2 boolean methods: "boolean removeCounter(int thisPeg)" "boolean removeCounter(int thisPeg)" thisPeg …

Member Avatar for valdez25
0
304
Member Avatar for helixkod

I have an xml file that I have to read in, convert all the carriage returns to \x0D and line feeds to \0xA, then call it into a function as a string. So for example my XML file is: <TEST> this is a string </Test> I would want a string …

Member Avatar for helixkod
0
1K
Member Avatar for Aditya_4

class Emp { int name, emp_no, addrs, ph_no, deprtmnt, post, project; Emp(int a, int b, int c, int d, int e, int f, int g) { name=a; emp_no=b; addrs=c; ph_no=d; deprtmnt=e; post=f; project=g; } Emp(int a, int b, int c, int d) { name=a; emp_no=b; addrs=c; ph_no=d; } Emp(int a, …

Member Avatar for Aditya_4
0
203
Member Avatar for while(!success)

Hi guys, I'm still new to .NET and your answers to my questions have been so helpful. I have another question yet again, however. This time my question has to do with sql server and handling it with code behind. I am creating a stored procedure which is supposed to …

Member Avatar for while(!success)
0
2K
Member Avatar for davkam

tickets consist of four colours: green, blue , red, and white. each ticket has an associated price: green cost €5, blue cost€10, red cost€20, white cost€30. write an enumerated class Ticket that has a toString method that pretty prints it and a getCost method that returns its cost.

Member Avatar for jalpesh_007
-1
208
Member Avatar for Szabi Zsoldos

Hi guys, A quick problem that I'm facing with a return method. I've created a page for a friend with a questionnaire and i am validating all the radio buttons, this works nicely. When i want to verify the input fields of text type, it alerts me but the return …

Member Avatar for Szabi Zsoldos
0
142
Member Avatar for Dendei

public string[] LandsKodComboBox(string[] dendei1, string[] dendei2) { string[] dendei1 = new string[5]; string[] dendei2 = new string[7]; //assign the array dendei1[2]="hello"; //etc etc.... return dendei1, dendei2; } why cant i return both of them? or how do you write? thank you Dendei.

Member Avatar for Dendei
0
219
Member Avatar for Dendei

hey i want to return my whole string array but the program wants me to specify one public string CreateCards( string[] Cards) { Cards = new string[52]; for (int a = 0; a <= 51; a++) { if (a <= 12) { Cards[a] = " Hjärter " + (a+1).ToString(); } …

Member Avatar for Dendei
0
319
Member Avatar for code739

hi guys i got some problem with this code error said that exact fetch row return more than expected rows CREATE OR REPLACE PROCEDURE "MAINTAIN_REQUESTSTATUS1" (emplevel IN NUMBER,eid IN NUMBER,depid IN NUMBER,teamid IN NUMBER) is lastreq number; seq number; stat NUMBER; tok varchar2(60); appr number; CURSOR c1 IS select empid …

Member Avatar for code739
0
173
Member Avatar for choosenalpha

Hi All, I am needing some assistance on how I can grab the values for the number of die that come up as 1, 2, 3, 4, 5 or 6. I have the count variables holding the count for each one that fits the "if statement". But I can't use …

Member Avatar for choosenalpha
1
473
Member Avatar for jackbauer24

What is the difference between "[CODE]return[/CODE]" and "[CODE]messageBox.Show("whatever")[/CODE]"? Also explain(efforts will be appreciated): What does [CODE]retern[/CODE] do?

Member Avatar for EBS.VivekGupta
0
181
Member Avatar for pwolf

the objective is as follows: Write a function splitWord(word, numOfChar) that takes in a word and a number as arguments. The function will split the word into smaller segments with each segment containing the number of letter specified in the numOfChar argument. These segments are stored and returned in a …

Member Avatar for pwolf
0
891
Member Avatar for pwolf

Write the function search(word, substring) that takes in a word and a substring as arguments and returns the position (0 indexed) of the substring if it is found in the word. The function returns -1 if the substring is not found. is there a method to do this? i tried; …

Member Avatar for TrustyTony
0
180
Member Avatar for cangan

Hi people, I need to change return type of a function. So function should return array values.In here, data type of the array values are not int,char or double. The data type of the array values are a kind of custom type. So confused. Please help:scared::idea::( [CODE] [COLOR="Red"]void [/COLOR]DataType_Class::insert_rowData_into_array() { …

Member Avatar for cangan
0
255
Member Avatar for Virangya

hi, my $.post code returns a whole page i want to get only content inside a id from that . this is my code it alerts null. what's wrong with it..? [CODE] $(document).ready(function(){ var url_select_file = "index.php"; $.post(url_select_file, { component: "tinymce_details", action: "selecticondata" }, function(data){ //alert(data); alert($(data).find('#ContentPane').html()); } ); [/CODE]

Member Avatar for link_umer
0
1K
Member Avatar for Mehnad

here is my entire code. now, the only problem I have stumbled upon is in the last method, getRow, where i have to extract a row from an array of string. could anyone please help me with this, i've been stuck for hours, not knowing why it calls "missing return …

Member Avatar for Mehnad
0
449
Member Avatar for superjj

hi I get an error, "has the wrong return type". it has something to do with "tim1.Tick += new System.EventHandler(tim1_tick);" Help me please. [CODE] Timer tim1 = new Timer(); DateTime huidigetijd = new DateTime(); private bool CheckTim1Start; public Wekker() { tim1.Tick += new System.EventHandler(tim1_tick); // tim1.Enabled = true; enable == …

Member Avatar for superjj
0
192
Member Avatar for shenanigans902

Hi, I keep getting the error message "Missing return statement" after my if else controls. I have return controls, I'm just not sure if I can implement multiple returns. For example, I am trying to create a method in which the middle value of a sequence of numbers is returned, …

Member Avatar for thines01
0
1K
Member Avatar for Octet

Hello DaniWeb Users, I am new to the forum however from what I have seen it is exceptionally good! I have searched the forums already and found various questions relating to a similar problem as mine however I am unable to work out how I can amend this for my …

Member Avatar for Octet
0
213
Member Avatar for xiangzhuang

Hey guys I keep getting the "no return statement error in two places, I have commented them for you [CODE] /** * A WordsCompare object stores Strings. It is used to determine if the first word * should be placed before or after the second word in the dictionary */ …

Member Avatar for JamesCherrill
0
288
Member Avatar for ssreevidya.m

Hai, I Have an sp like this: [CODE]ALTER procedure [dbo].[SP_ClassInsertion] @ClassType varchar(50), @ClassTypeId varchar(50), @ClassName varchar(50), @SchoolId varchar(50), @ClassID varchar(50), @BatchId varchar(50), @Userid uniqueidentifier, @ClassCategoryId varchar(50), @SchoolClassCategoryId varchar(50) as declare @STATUS int begin if exists(select Class_Id from SCH_Class where Class_Name=@ClassName and School_Id=@SchoolId and Is_Valid=1) begin set @STATUS=0 end else begin …

Member Avatar for ssreevidya.m
0
300
Member Avatar for Efficience

I have written a code for checking vfork in unix. But I am getting the ambiguous behavious. When I am using exit(0) in child process , output is fine i.e; output :- Before fork I am a child My name is parent child PID=> 23133 kValue => 2 ] But …

Member Avatar for Efficience
0
282

The End.