|
This LOOKS pretty awsome
I have one error and i don't actually know why.
lstPlayers = Player.GetAllPlayers(My.Settings.HighScoresFile)
VB doesn't like .High Scores File.
This is probably something stupid whch i've done but i can't work out why that doesn't like it?
Thanks again
Dan
|
|
|
|
|
Hi there. Sorry it is my fault, I forgot to mention that where ever possible it is not a good idea to hardcode things like Filenames, Connectionstrings, etc into your app. The best way to do this is to use your Application.Settings file which is automatically generated for you by VS. To access the settings file, right click on your project in Solution Explorer, select properties and a form should open up with various tabs to set up options for your app. Select Settings tab and there you can store application specific settings such as file names and connection strings. To set up HighScoresFile, type the name HighScoresFile under name, under type select string, under scope select application, and under value put the full address of the file. To access any of your settings then from your app you call My.Settings.'insert setting name here' . When considering where to put the file, you need to take into account where you will deploy the application and where the High Scores file will actually be kept when the app has been deployed on other machines. Hope this helps.
|
|
|
|
|
when running application when program hits this code I get this error.
<code> For y As Integer = 0 To frmtodayscafe.count
For x As Integer = 2 To 12
writeline1(x) = filename(y) + vbTab + frmtodayscafe.totalitemquantity(y) + vbTab + FormatCurrency(filename1(y)) + vbTab + vbTab + FormatCurrency(frmtodayscafe.cost(y))
Next
Next</code>
cheeseburger is assign to filename(y) which is declared as a string array
filename1(y) is a numeric value cost of the cheeseburger. writeline1(x) is also a string array.
by changing the code to the following:
writeline(x) = filename(y) + vbTab + format(frmtodayscafe.totalitemquantity(y)) + vbTab + FormatCurrency(filename1(y)) + vbTab + vbTab + FormatCurrency(frmtodayscafe.cost(y))
modified on Monday, March 8, 2010 12:30 PM
|
|
|
|
|
Where come from the value "cheeseburger"? Which variable hold that value? Are you trying to do a "FormatCurrency" on that value?
|
|
|
|
|
cheeseburger is a string loaded from a file .... I am trying to write the string to a concatenated string to include qty, pricing, and total pricing.
it should say on the string
cheeseburger 1 $3.00 $3.00
|
|
|
|
|
What is the type of writeline1(x)? Is it a string or double?
|
|
|
|
|
wireline1 is a string array
|
|
|
|
|
You are doing a FormatCurrency on a string value of "Cheeseburger".
I know of few countries where cheeseburgers are legal tender.
You may want to try the amount (double) rather than the file name (string).
|
|
|
|
|
filename(0) = cheeseburger
filename1(0) = 5.00
filename1(0) is being formatted to currency by not filename(0)
cheeseburger is not being formatted as double.
|
|
|
|
|
by changing the code to the following has resolved issues. there are no more errors at runtime.
writeline(x) = filename(y) + vbTab + format(frmtodayscafe.totalitemquantity(y)) + vbTab + FormatCurrency(filename1(y)) + vbTab + vbTab + FormatCurrency(frmtodayscafe.cost(y))
|
|
|
|
|
|
Check your Configuration manager. If you can think then I Can.
|
|
|
|
|
|
|
rather than removing the question (which results in a crippled thread) you should:
- append "SOLVED" to the original subject line
- and publish the solution to the benefit of the community.
|
|
|
|
|
how do you published when issues are resolved.
|
|
|
|
|
just add a reply to one of the messages in the thread (the one that helped you most, the last one, or the question itself).
|
|
|
|
|
Thanks in Advance
Is it Possible to get the File/Folder Copying History , like who copied a folder at what time etc Best Regards,
SOFTDEV
If you have knowledge, let others light their candles at it
|
|
|
|
|
I would have thought by now, with the other questions you have asked relating to this subject area, that you would know this is not easy to do.
You would have to hook into the system, and watch for all the file io operations.
|
|
|
|
|
I don't beieve that this information is logged anywhere. It would probably add quite an overhead to any OS. txtspeak is the realm of 9 year old children, not developers. Christian Graus
|
|
|
|
|
Windows and NTFS do not track such information. There is no way to get it.
Even writing an NTFS extension wouldn't do anynthing for you since a copy operation is nothing more than "open a file and read it". There's no way to tell the difference between a file being copied and one being read by its application.
|
|
|
|
|
Thanks alot for sharing the information Best Regards,
SOFTDEV
If you have knowledge, let others light their candles at it
|
|
|
|
|
Yes it is Possible. You Should be work on Clipboard Hook. If you can think then I Can.
|
|
|
|
|
No, it's not. Clipboard won't give you the files that are dragged and dropped, nor will it give you anything done through a CMD prompt. Ever hear of XCOPY?
|
|
|
|
|
Yes
Clipboard not get the information regarding Dragged and Droped ,or Sendto method or Command Prompt .If you can think then I Can.
|
|
|
|