15,891,704 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by KitsunePhoenix (Top 37 by date)
KitsunePhoenix
27-Jan-17 12:43pm
View
okay that works. It may cause a problem farther down the line but i'll deal with that then.
KitsunePhoenix
27-Jan-17 12:29pm
View
thank you for pointing that out, I fixed it. still didn't solve my problem though.
KitsunePhoenix
27-Jan-17 12:26pm
View
it looks better in terms of formatting the code but hasn't made any difference on the actual output.
KitsunePhoenix
11-Nov-15 8:31am
View
it worked! All I had to do was put the entire query (i.e. the data adapter, data table etc.) into an If statement that activates when PokedexList.SelectedItems.Count > 0. Thank you so much! As for th efor each constructs setting the text boxes, there is only one selected item allowed so there is only one item to set. It's actually something I forgot to change, I only just learned to pull the text from a single listview item.
KitsunePhoenix
11-Nov-15 8:09am
View
Deleted
I use the for each because I haven't found any other way to pull the data from the row. Every reference I find online says to use a "For Each row In dt.Rows" Do you have an alternate method when pulling just one row of data?
KitsunePhoenix
11-Nov-15 7:03am
View
the code I posted in the question is where the problem is. The only other thing the code does when PokedexList is changed is to post the new pokemons name in a textbox. I'll add that just in case it helps but i can't see how it would.
KitsunePhoenix
11-Nov-15 6:19am
View
I tried. I don't come here until i've exhausted every possibility, all the debugger will tell me is that there's nothing there, and I can't figure out why. It works for the first item I select, but when I try to change the selection it seems to be running the code before the new item is selected.
KitsunePhoenix
11-Nov-15 3:17am
View
'Option' must be followed by 'Compare', 'Explicit', 'Infer', or 'Strict'.
KitsunePhoenix
10-Nov-15 9:05am
View
it accepts either/or. I'm not sure which is the preferred method, but the SQL builder in MS Access defaults to ! over . Either way, I tried changing it and got no different result.
KitsunePhoenix
9-Nov-15 20:49pm
View
i thought the question was obvious but okay, any ideas where i'm going wrong in the code?
KitsunePhoenix
9-Nov-15 20:33pm
View
it stops at the data adapter and says one or more required parameters has no value
KitsunePhoenix
8-Nov-15 18:23pm
View
i've tried multiple connection strings, when it's in the "\bin\Debug" folder I use
"Provider = Microsoft.ACE.OLEDB.12.0;Data Source=" &
Environment.CurrentDirectory & "\Pokedex.accdb"
but when I move it somewhere else I change the Data Source to point directly at it.
KitsunePhoenix
8-Nov-15 18:21pm
View
it's definitely visual studios fault because the problem occurs when I attempt to make a connection. Tools --> Connect to Database --> Database File Name --> Browse and here is where I believe the problem to lay because it automatically opens to to "\bin\Debug" where the database used to be, it's not there anymore but for some reason the Visual Studio's browser pulls it up as if it were there.
KitsunePhoenix
8-Nov-15 6:19am
View
okay this needs to be said for anyone else who can't figure out why this wasn't working. I followed the usual instructions to change the active solution platform, and there it said I was on x86. However, I went to Project ---> [Insert Project Name] Properties ---> Compile and even though the active platform was x86, the Target CPU was set to x64. Changing that to x86 fixed my problem.
KitsunePhoenix
3-Jul-15 14:55pm
View
wasn't quite the correct answer (my fault, I didn't provide the info you would need for the correct solution) but it did help me find the problem. The problem was with the SQL statement, I had the wrong field names in the wrong places. I guess sometimes you just need an outside eye to point out the obvious lolz. Thank you for your time.
KitsunePhoenix
1-Jul-15 11:37am
View
that did it! Thank you so much! and thank you for being patient with me. Edit your solution and I'll mark it as answered
KitsunePhoenix
1-Jul-15 10:43am
View
either the solution isn't there or I just can't see it. Using item.Text didn't work either, though it didn't give an error. it didn't give any effect either. I clicked the button and got nothing.
I also tried item.Text(0) and item.Text(1) with the same result.
KitsunePhoenix
30-Jun-15 15:38pm
View
it says "Failed to convert parameter value from a ListViewSubItem to a String."
KitsunePhoenix
29-Jun-15 18:33pm
View
The problem is, the point where I supply the value is the earliest I can (I supply the values in the inner For Each statement). I've done similar code before and it worked, but I can't figure out why it's not working now. If I supply a value for the parameters before the For Each statement, then it tries to use that value instead of the value I supply in the For Each.
KitsunePhoenix
29-Jun-15 18:03pm
View
updated though all I changed was to make the named parameters into ?
KitsunePhoenix
29-Jun-15 17:15pm
View
that was good information to know but doesn't help with my specific problem. My problem is with giving it a value. I tried giving the parameter a placeholder value, figuring that when the code ran it would give it a new value but that didn't work either.
KitsunePhoenix
28-Jun-15 21:09pm
View
is there something more I don't know about that word? If by debugger you mean F5 then I am using it, that's how I know there's a problem. There's no errors with the code, but it's not giving the expected values. With the code the way it is, it should be setting the numupdown values as listed here:
PlayHP.Value = 580 (initial HP is 500, the helmet gives 80)
PlaySP.Value = 380 (initial SP is 300, the helmet gives 80)
PlaySTR.Value = 2 (base STR is 0, the helmet gives 2)
PlayAGI.Value = 2 (base AGI is 0, the helmet gives 2)
PlayLUC.Value = 3 (base LUC is 0, the helmet gives 3)
Instead it gives a value of 0 for all of these stats (except HP and SP which are given their initial values of 500 and 300 respectively). The program is set up to save these values in a separate database and when the program loads it pulls the values from the database, so I tried setting the values to 10 to see if it made a difference and it's definitely trying to make the calculations because what should have been shown as 10 came out as 0.
KitsunePhoenix
20-Jun-15 12:38pm
View
Thank you so much! I learned a lot from this, answers aren't usually so in depth. Solved my problem and then some. With any luck I should be able to finish the program and debug any loopholes within the next few hours.
KitsunePhoenix
20-Jun-15 6:04am
View
omg I feel stupid. I spent two days trying to find a solution and it was right there in front of me lmao. Thank you
KitsunePhoenix
20-Jun-15 4:40am
View
none. The error comes in the first iteration of For... Each... Next.
KitsunePhoenix
19-Jun-15 10:02am
View
Thank you, this advanced to my next problem :P
KitsunePhoenix
4-Jun-15 1:23am
View
Thank you, that got me past my problem. I'll have to remember that for next time.
KitsunePhoenix
21-May-15 7:31am
View
The output in the event log is:
- System
- Provider
[ Name] SideBySide
- EventID 10
[ Qualifiers] 49409
Level 2
Task 0
Keywords 0x80000000000000
- TimeCreated
[ SystemTime] 2015-05-21T11:29:08.000000000Z
EventRecordID 1493
Channel Application
Computer WIN-I1KMUN8JT8V
Security
- EventData
C:\Users\gwenk\OneDrive\Documents\Visual Studio 2010\Projects\PDod EV Tracker 2.1\PDod EV Tracker 2.1\bin\Debug\PDod EV Tracker 2.1.exe
C:\Users\gwenk\OneDrive\Documents\Visual Studio 2010\Projects\PDod EV Tracker 2.1\PDod EV Tracker 2.1\bin\Debug\PDod EV Tracker 2.1.exe.Config
1
KitsunePhoenix
20-May-15 15:18pm
View
I can't think of anything else that would help. The code listed at my link is everything that has to do with the database. The reason it doesn't load is because the program is designed to create and access the database immediately, but since it can't connect to the database it doesn't load, it just gives an error immediately after clicking Debug. The only difference between my database code and the one at the link is that everywhere you see the word "Cloud" I changed it to Pokemon.
EDIT: So I tried running the exe in the bin/Debug folder and got the following error:
"This application has failed to start because the application configuration is incorrect. Review the manifest file for possible errors. Reinstalling the application may fix this problem. For more details, please see the application event log."
What is the manifest file?
KitsunePhoenix
20-May-15 14:19pm
View
that won't work because the app doesn't load. If I knew where it was going to place it then I would know what to put but I don't have a clue.
KitsunePhoenix
20-May-15 11:48am
View
Deleted
That worked and after resolving a few other minor errors I encountered a problem I hadn't considered. How do I find the connection string? I tried a few different strings but I get the error saying configuration system failed to initialize. I'm assuming that means there is a problem with the connection string.
I've been searching bing but most of the results I'm finding are for external connections like what I had before.
KitsunePhoenix
20-May-15 10:12am
View
Okay I have one last question (hopefully lolz). In the CloudAppSettings I've encountered only one problem I couldn't handle.
Public Shared Function GetConfigAppSettingsByName(ByVal AppSettingsName As String) As String
Dim result As String = ""
If ConfigurationManager.AppSettings.AllKeys.Contains(AppSettingsName) = True Then
result = System.Configuration.ConfigurationManager.AppSettings(AppSettingsName.Trim)
End If
Return result
End Function
The above code shows two errors and I'm not sure how to resolve them. the first error is that ConfigurationManager is not declared. The second error says that "ConfigurationManager is not a member of Configuration."
Once these two problems are resolved it should be a simple matter to edit my code to fit the new database. Thank you for all your help. :)
KitsunePhoenix
20-May-15 9:34am
View
Deleted
nvm it appears I can import the .vb by itself, I just can't open the project.
KitsunePhoenix
20-May-15 9:28am
View
Deleted
smh I can't open it. apparently it was created by a newer version of visual studio. I'm using VS 2010
KitsunePhoenix
20-May-15 9:26am
View
lol I didn't even see that download linking hiding at the top. Thank you
KitsunePhoenix
20-May-15 9:04am
View
it went a long way to helping but there are three variables mentioned in the code it gives that it never declares, so I don't know what they are or what purpose they serve. Maybe you can help? CloudAppSettings, ConnSettings, and AccessCreateDB are the missing variables. And it mentions the code
CloudAccessDatabase.CreateNewDatabase(CloudAccessDatabase.DatabaseType.sample1)
but never says where it belongs, and when I put it into form1 it highlights CloudAccessDatabase and says a declaration is expected. This is why I posted the question, is because every tutorial I have found so far has had a problem like this where it gives most of the information but leaves out important bits that are impossible to figure out on your own.
KitsunePhoenix
20-May-15 8:21am
View
Deleted
it looks like I might but how do I add an app.config?
Show More