Type: Posts; User: DataMiser
Search took 0.09 seconds.
November 22nd, 2015, 09:39 AM
Put your strings into an array
Use the random function to get a number between 0 and 2
Use that number to select the item from the array
November 12th, 2015, 07:01 AM
It is that simple, You have to get what the user types of course and to display that in a label is about as simple as it gets. i.e. Label1.Text=TheValue.ToString
To build the string you mention...
November 11th, 2015, 09:11 AM
You simply add the values together then divide by the number of entries.
I'm not sure where an array comes into it as your post sounds like you just need a simple for next loop with a little math,...
November 8th, 2015, 08:40 AM
Your variable types are incorrect for what you are doing.
Integer holds a whole number so my guess would be that you are never getting any increment due to the values being rounded down. In effect...
November 7th, 2015, 08:50 PM
Well assuming that investment, interest and ending are all valid numeric values the loop should exit after a number of loops. How many loops will depend on those values of course and if the values...
November 7th, 2015, 03:25 PM
by using an = assignment.
In this case I assume you want current to be equal to investment or better still just get rid of current completely and use investment as that is what you are updating...
November 7th, 2015, 08:57 AM
Well current is 0 and never changes so it will always be <ending and the loop will never end.
You need to update the value of current in your loop
November 6th, 2015, 01:10 PM
It is pretty simple.
Use a loop, within the loop do the math, repeat until the value is the desired amount. Don't forget to keep track of how many times the loop executes as it works toward the...
November 6th, 2015, 08:21 AM
Your last parameter is of a different type than the others but is defined in the SP the same as the others
November 4th, 2015, 10:05 AM
You should use ADO instead, both RDO and DAO are very outdated.
As of the release of VB6 ADO was the recommended method for data access.
It works well with MySQL, SQL Server, Access and many...
November 3rd, 2015, 08:50 AM
I would like to help but RDO? I have not saw RDO used in anything in many years now and rarely ever used it even when it was current.
Is there a reason you are not using ADO instead?
November 2nd, 2015, 02:34 PM
If the form was hidden as you say then you are not re-opening the form as it is already open you would simply make the form visible again.
As for how to know which form that is something I can't...
November 2nd, 2015, 09:08 AM
Well if you are just hiding the form then nothing will be lost you can simply show the form again and everything will be as it was before you hid it.
As for saving you do not save the form, you...
October 29th, 2015, 02:36 PM
It is best to use control arrays for such purposes.
For example instead of naming your check boxes chck_1, chck_2 and so on. You create one checkbox named chck then you copy it and paste. When you...
October 26th, 2015, 08:49 AM
You could use the DateDiff() or the DateAdd() functions to see if the date is within the range you want and then set the color as desired.
As to where you should put the code, that depends on...
October 25th, 2015, 07:48 AM
I'm not really a C programmer, been a long time since I even looked at it but the task at hand sounds like it should use a database and SQL queries.
October 15th, 2015, 12:51 AM
So what is happening? What is the issue you have?
October 15th, 2015, 12:49 AM
I do not know for sure. I have not did much with asp controls and events.
The last site I did I just call a sub in the vb file as I showed in the code above and use response.write to write html to...
October 14th, 2015, 06:25 PM
Sure they are. You just have to use them in the right place.
I don't do much with web stuff but I have a web app I created in ASP.Net and I do use <% %> to place VBCode inline with the HTML in...
October 14th, 2015, 05:35 PM
txtscore1 2 and 3 all have not be assigned a value so they will all be 0 and your If statement will return false
You should not be coding with Option Explicit off, always turn that on in...
October 14th, 2015, 05:29 PM
You are passing the name as part of your query string to the page but you are not doing anything with it on your thank you page
The label is not assigned a value
I haven't fooled around with...
October 14th, 2015, 05:23 PM
I have been trying to find a method of getting the path to where my executable is being ran from but so far am not having much luck. I see that there are several different ways to do this on the PC...
October 5th, 2015, 04:22 PM
Would help if I could but I gave up on Crystal long ago in favor of Active Reports. One of the best decisions I have made, huge time saver and much easier to work with than Crystal.
October 1st, 2015, 06:39 PM
There is a folder of redistrib files on your system. I forget now where it is at but probably what you need to do is update those as the ones there by default are pretty far out of date.
September 20th, 2015, 09:58 PM
It looks like you are dealing with ASP code and while it uses a VB syntax it is not VB so many options are not available to you.
It also looks like you are reading all of those files so that is...
Click Here to Expand Forum to Full Width
This is a Codeguru.com survey!