- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 13
- Posts with Upvotes
- 13
- Upvoting Members
- 11
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
51 Posted Topics
Re: I'm not quit sure, but is it because they all using the same "ComboBoxSelectedIndexChanged"? What happens in that method? You can also try using a separate datasource for each combobox. | |
Re: Rounding off from 2.90 to 3.00 is very unusual. 2.90 is rounded to 3, for that you can use asl ss125 says Math.Round. You cannot use Math.Round(2.90, 2) to return 3.00, it will return 2.90! | |
Re: I don't know what happens, maybe you have an empty row in your database. Your code seem equal to [Click Here](http://nl3.php.net/manual/en/function.mysql-fetch-array.php) On option in your code that you lack an else-clause so if the row does not fit in the else-ifs, no value will be put in the cell. In … | |
Re: I think you are looking for this feature: [Click Here](http://dev.mysql.com/doc/refman/5.0/en/replace.html) REPLACE in stead of INSERT and UPDATE. You'll only have to check whether a row in changed or not. | |
Re: In addition to prixat: Milage(txtMilage.Text) = 0 if isn't set. Then Milage(txtMilage.Text) * Rate is also 0. | |
Re: Sunil 8, what do you actually want to do? Create an hyperlink to some text? In that case you can add some text in a cell, assign a name to that cell and use it anywhere in the excelsheet. Please describe your question in more detail. | |
Re: It depends on database you are using. When you use an Oracle database you should use || (double pipe) to concat, + can be used with SQL Server and for MySQL you should use Concat('A', 'B').... | |
Re: I should use the same mvc action that uses a two private voids or functions to process the 2 different tasks. Seems most straight forward to me. | |
Re: When you're working with MySQL the query below will work, but will only return rows that has an payment record. When you alter the INNER JOIN into LEFT JOIN you'll get the original result, extended with the hasPaid column that contains a null value when no paymend record with idNumber … | |
Re: Some questions that might help you: * Maybe $status returns a string '1'. * You write the query returns 1, but does $data['Finished'] also return 1. * What value does $status have outside the while-block? Good luck | |
Re: I think you shouldn't use .executenonquery (see: http://msdn.microsoft.com/en-us/library/system.data.sqlclient.sqlcommand.executenonquery.aspx) but .executereader (see: http://msdn.microsoft.com/en-us/library/9kcbe65k.aspx). | |
Re: Use can use a foreach for all IEnumerables (like List) List<NameAddress> route = dialog.getRoute(); foreach(NameAddress nameAddress in route) { //some more to copy rout to another List<> } | |
![]() | Re: I don't know such editor, but I would suppose an altnernative strategy. Implement WordPress or Drupal which can be extented whatever you want and in which your friend can add content, without the need of any programming knowledge. |
Re: Does your queries change html characters into html-save characters? | |
I am working on an application that keeps track and uses files stored on the file system. Users are allowed to open, create, delete and move files in the file system. Meanwhile my application is not constantly running so I can't keep track of all changes real-time. Afterwards my application … | |
Re: Try using a semicolon after the window.alert() or additional attributes to the script-tag like type. | |
Re: You can't just put any character in an GET parameter because it posted into the URL. Use a POST variable in stead and/or encode the variable input to url-save characters (e.g. use base64_encode). | |
Re: Usually you get input from a form by $_REQUEST['date3'] for date3. The use of dates in queries does depend on your database. For Oracle I saw an example (that I cannot try because I currently haven't got an oracle db available): SELECT * FROM EMPLOYEE WHERE END_DATE BETWEEN TO_DATE('04/15/2006' , … | |
Re: Maybe you can find some help here: http://blog-mstechnology.blogspot.nl/2009/06/get-printer-details-thru-c-code.html | |
Re: Something like this does change the representation in your worksheet. Sub ChangeActiveCellFormat() ActiveCell.NumberFormat = "#,##0.00" End Sub Depending on you local settings of Windows Excel uses a . or a , to separate the thousands. This however converts the content of the active cell into text and put it in … | |
Re: Because a and b were successfully incrementented? You have putten an 'conditional or' operator between the two statements. Although I am not an C expert, usually, when the first part appears to be true the second part will not performed at all. | |
Re: You haven't got an external screen to connect? Maybe you can try reset the machine by keeping the on/off button pressed for a while. Try running the machine without battery. Nasty problem: good luck! | |
Re: Hi, maybe you should try $_REQUEST because this contains both the GET and POST parameters. To find out what has been sent to your PHP server you can dump the content of the variables with var_export: <? //either var_export($_REQUEST); //or print var_export($_REQUEST, true); ?> This dumps the complete content of … | |
Re: You can call TextBox1.Text.ToLower() or TextBox1.Text.ToUpper() so all characters are in lower or upper case. | |
Re: Make use of of the windows user - this user is already authenticated! Validate whether the logged in Windows user has access to your application. One example of retrieving the Windows user you can find here: [URL="http://www.spiration.co.uk/post/1367/Get%20Windows%20username%20of%20current%20user%20-%20C%23"]http://www.spiration.co.uk/post/1367/Get%20Windows%20username%20of%20current%20user%20-%20C%23[/URL] | |
Re: Maybe you can specify your question with code samples. The first thing I think of is: does you form action contain Get-parameters? Or does it perform a Post? In that case use should question your form with $__POST[variable]. With $__REQUEST[variable] you can look for both Post an Get variables. | |
Re: May "us-ascii" is not completely suitable. See: [URL="http://msdn.microsoft.com/en-us/library/system.text.encoding.aspx"]http://msdn.microsoft.com/en-us/library/system.text.encoding.aspx[/URL] (and especially the Remarks part). | |
Re: I'm not quit clear what you mean with boolean full-text search and what you're doing? Do you have an column that containing "True" or "False"? The most dynamic feeling can be created by loading the records into memory. I cannot see what limitations you are confronted with. | |
Re: a bit out of time, but for future searches: You use [CODE] Excel.XlFileFormat.xlXMLSpreadsheet [/CODE] which is actually an XML file. When you use the extension of an Excel workbook does not expect an XML file, so the message is shown. Excel won't show that message when you use: [CODE] //extension … | |
Re: You'll have 2 options: (1) create a form so the button can submit to it's action or (2) you use the javascript onclick-event of the button to open export.php. | |
Re: Hello, I gave it a really short glimpse but I'm missing the declaration [CODE] var $db_host; [/CODE] you're using $this->db_host, but it is never declared. ![]() | |
Re: .Net framework offers Trace-functionality. When you want to log some within your code you call: [CODE] System.Diagnostics.Trace.Write("message"); //or System.Diagnostics.Trace.WriteLine("message"); //or System.Diagnostics.Trace.WriteIf(TraceSwitch, "message"); //or System.Diagnostics.Trace.WriteLineIf(TraceSwitch, "message"); [/CODE] The TraceSwitch catches the loglevel, with the properties Trace.... (e.g TraceInfo). The TraceSwitch and the tracelistner can be configured in your config file. The … | |
Re: Use Math: [CODE] double pi = 3.14159265; Console.WriteLine(Math.Round(pi, 2)); //displays 3.14 Console.WriteLine(Math.Round(pi, 3)); //displays 3.142 Console.ReadKey(); [/CODE] See for more info: [URL="http://msdn.microsoft.com/en-us/library/wyk4d9cy.aspx#Y342"]http://msdn.microsoft.com/en-us/library/wyk4d9cy.aspx#Y342[/URL] | |
Re: Hello, You forgot to assign an icon. This code works for a Win-Form-Application: [CODE] private void Form1_Click(object sender, EventArgs e) { notifyIcon1.Icon = new System.Drawing.Icon(@"c:\temp\Administrator.ico"); notifyIcon1.BalloonTipText = "Hello"; notifyIcon1.BalloonTipTitle = "Message"; notifyIcon1.BalloonTipIcon = ToolTipIcon.Warning; notifyIcon1.Visible = true; notifyIcon1.ShowBalloonTip(10000); } [/CODE] | |
Re: You calling twice [CODE] $row = mysqli_fetch_assoc($result); [/CODE] With the second query you affect the $result, $sql and $row of the first query, I guess. | |
Re: Maybe this will help: [URL="http://nl2.php.net/manual/en/function.sprintf.php"]http://nl2.php.net/manual/en/function.sprintf.php[/URL] | |
Re: call [CODE] throw new BookException(Title, Price, Numpages); [/CODE] declare [CODE] public class BookException : Exception { public BookException(string Title, double Price, double NumPages) : base (String.Format("Ratio for {0} is invalid. Price is {1} for {2} pages.", Title, Price, Numpages)) { } } [/CODE] Why not inherit from ApplicationException in stead … | |
Re: This is the most quick sorting algorithm I know: [CODE] namespace sort { class Program { static void Main(string[] args) { List<string> sortList = new List<string>(); sortList.Add("X"); sortList.Add("B"); sortList.Add("K"); sortList.Sort(); for(int i = 0; i < sortList.Count; i++ ) Console.WriteLine(sortList[i]); Console.ReadKey(); } } } [/CODE] But it may not work … | |
Re: The configuration is put into a XML file like this [CODE] <?xml version="1.0"?> <configuration> <appSettings> <add key="errormail.verzenden" value="1"/> <add key="errormail.address.from" value="noreply@hello.com"/> <add key="errormail.address.to" value="paperclip@msn.com"/> <add key="errormail.address.cc" value=""/> </appSettings> </configuration [/CODE] You can retrieve these settings with [CODE] string keyValue = System.Configuration.ConfigurationManager.AppSettings[KeyName]; [/CODE] or in VB.NET [CODE] Dim keyValue as string … | |
Re: You can handle these checks on the client-site by Javascript. Or you make a AJAX call to your server (which is actually a post to your server), your server is checking the input and returns the result. When the result is OK, your form can post the data. While writing … | |
Re: Look for the latest info and a complete survey of certification programs at the Microsoft-site: [URL="http://www.microsoft.com/learning/en/us/certification/cert-overview.aspx"]http://www.microsoft.com/learning/en/us/certification/cert-overview.aspx[/URL]. | |
Re: I don't know CarlosAg.ExcelXmlWriter. I know office interop: When you have Excel installed on the machine that runs your application you can use the standard Office Interop classes, which are very widely documented. In code you should open an instance of ExcelAppliction. With the Workbooks-collection of the ExcelApplication you open … | |
Re: Your question isn't quite clear. Why don't you put all reasonling into function greetings [CODE] function Greetings() { if($occupancy < 1) return "Nobody is home"; if($greetings == hello) { return "Hello"; } else { return "goodbye"; } } [/CODE] Calling Greetings [CODE] echo Greetings(); //or print Greetings(); [/CODE] | |
Re: Try this information [URL="http://nl2.php.net/manual/en/function.mysql-set-charset.php"]http://nl2.php.net/manual/en/function.mysql-set-charset.php[/URL] | |
Re: Hi John For sorting you can use List<T>.Sort() or the sort of an ArrayList. You also can put your data into a DataTable and sort the .DefaultView of it. Using the List<T> or List<string> you can use the .Add method (in stead of CustList.Add). when you have added all items … | |
Re: When you're running localhost in Windows but online using linux or unix you should be aware of capitals because Windows ignores capitals but linux/unix not! | |
Re: Weird way to get the GET params. Try this: [CODE] <?php foreach ($_GET as $key => &$val) $val = filter_input(INPUT_GET, $key); foreach ($_POST as $key => &$val) $val = filter_input(INPUT_POST, $key); ?> [/CODE] or see this page: [URL="http://php.net/manual/fr/reserved.variables.get.php"]http://php.net/manual/fr/reserved.variables.get.php[/URL] Withing preg_split you should use a regular expression to split. An regular … | |
Re: It's weird. I have trying it in a Winform app and it did work fine. Although unlikely, the only thing I see is that you might oversee the precedence of the && over the || operator. (Also the options to win the game are not complete in the if) The … | |
Re: This line helps me filtering a DataGridView: My DataGridView.DataSource = <name>BindingSource this.<name>BindingSource.Filter = String.Format("<columnname> LIKE '%{0}%'", TextBoxFilter.Text); The DataGridView and BindingSource were generated automatically. If you do not use the bindingsource, you can apply a filter by changing the DefaultView of the table which is shown in the grid. |
The End.