- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 6
- Posts with Upvotes
- 6
- Upvoting Members
- 6
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
17 Posted Topics
Hi all. Im new to JS and would like to note the following case: Ive run the following test numerous times ie: [CODE]<html> <body> <script type="text/javascript"> var s = 0, o = 0; for (a=0;a<=10;a++) { var start = new Date().getTime(); var res = 0; for (b=0;b<=100000000;b++) { res = … | |
Hi all. I come from an MS SQL background and a newbie in MY SQL. Im trying to run a simple query to populate a table: [CODE]Declare @I As Int Select @I = 1 While (@I < 100) Begin Insert into tbWhatEva Select @I Select @I = @I + 1 … | |
Hi all, I'd appreciate some advice concerning the following issue. I have a situation with two very different ways to implement. Both are easy, but Im not sure of the pros and cons of each. Basically I am allowing users to message each other on a website, and so I … | |
Hi All, I have a query that returns rows from a message table. Im basically trying to get the latest MESSAGE_TYPE for the user based on when the message was sent (MESSAGEDATE) At the moment I have a query that gets me almost what I want. It returns something like … | |
Re: Adding to what private void said there is also a mapping type porperty on data tables. Setting it to mappingtype.hidden will do the same. [CODE] DataGridView dgv = new DataGridView(); dgv.Columns["ColumnName"].Visible = false; DataTable dt = new DataTable(); dt.Columns["ColumnName"].ColumnMapping = MappingType.Hidden; [/CODE] | |
Re: Here is another quick example of serialising a few text fields - three in this case - I just created a standard from with three text boxes and a save button, this is the code behind the form. A simple example of serialising - hope it helps [CODE] [Serializable] public … | |
Re: Hey Amit-400 Ive never had to tackle something like this but I think you will need to get hold of a 'pdf' sdk I did a quick search and came across this site which offers a link to two sdk's - free I think [url]http://bytes.com/topic/c-sharp/answers/213964-pdf-sdk[/url] Hope that helps. | |
Re: mingarrolo. This is the easiest problem I have come across on these forums. You have literally provided detailed instructions of what you need to do. Because you have incorrectly implemented step two, it leads me to believe you are very very new at coding. Coding is a tough concept to … | |
Re: Hey chargeFan Ive knocked together a quick simple example for you. Although it can be enhanced greatly. [CODE] public partial class Form1 : Form { private double opperand_A = 0; private bool opperand_A_Set = false; public Form1() { InitializeComponent(); } private void btAdd_Click(object sender, EventArgs e) { if (!opperand_A_Set) { … | |
Re: Hey rzhaley You have many methods there and you could put that into one method. If else would be ok in this case, but I prefer a swith statement in this case as you have done. How about a method like this: [CODE] public string FromAbbreviation(string abr) { switch (abr.ToLower().Trim()) … | |
Re: Hey Micka10 Its becuase your arraylist contains a reference to string[] record, which you have only created once (in memory). You are simply adding a reference to that array multiple times and at the same time updating it. To solve it simple create a new array inside the loop. i.e … | |
Re: Hey abc16 I unfortunately dont know much about the MSAccess db. I kinda thought the MSAccess db was down and out. ie only used by legacy software. Ive been using Sql and its a dream to use. But thats neither here nor there. If I understand correctly you want the … | |
Re: [CODE] //Table with multiple columns DataTable dt1 = new DataTable(); //Table with chosen column DataTable dt2 = dt1.Columns["ColumnName"].Table; [/CODE] | |
Re: C# The .Net FrameWork will provide you with almost everything you need. And its very quick and easy to learn. Plus there are tons of examples out there. Just download C# Express and you'll be on your way. | |
Re: For the front end Id consider just a small validation method, something like below as this can be checked on the front end. This can check if a field is empty before saving [CODE] public bool Validate() { foreach (Control control in this.Controls) { if (control is TextBox) { if … | |
Re: Here is a simple method that I knocked up that might help you [CODE] private void Dispense(string inputAmount) { int fifty_ammount = 0; int twenty_ammount = 0; int ten_ammount = 0; int five_ammount = 0; double total = Convert.ToDouble(inputAmount); while ((total - 50) >= 0) { fifty_ammount += 1; total … |
The End.