Y yemi1979 Member Licensed User Longtime User Sep 15, 2013 #1 Hi, I keep getting errors with the cursor. The code below can not see to run. Please advice Thanks Dim Cursor1 As Cursor Cursor1 = SQL1.ExecQuery("SELECT name, Longitude, Latitude FROM Stores;") cursor1 is not a valid identifier.
Hi, I keep getting errors with the cursor. The code below can not see to run. Please advice Thanks Dim Cursor1 As Cursor Cursor1 = SQL1.ExecQuery("SELECT name, Longitude, Latitude FROM Stores;") cursor1 is not a valid identifier.
NJDude Expert Licensed User Longtime User Sep 15, 2013 #2 Remove the semicolon at the end of the query. Upvote 0
Y yemi1979 Member Licensed User Longtime User Sep 15, 2013 #3 Tried it. Still same error. Something seems to be wrong with assigning SQL to Cursor Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Sep 16, 2013 #4 When do you get this error message? During runtime? Upvote 0
Y yemi1979 Member Licensed User Longtime User Sep 16, 2013 #5 I get the error when I attempt to compile. Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Sep 16, 2013 #6 This is strange. Can you upload your project (file - Export as zip)? Upvote 0
Y yemi1979 Member Licensed User Longtime User Sep 16, 2013 #7 Erel, It is really strange. The file seems to be too large to upload here. Can I email it to you? if so, what the best email? Thanks for your help Upvote 0
Erel, It is really strange. The file seems to be too large to upload here. Can I email it to you? if so, what the best email? Thanks for your help
eps Expert Licensed User Longtime User Sep 16, 2013 #8 If you comment out that offending line, does it compile? I suspect that you've not ended a sub correctly and its giving you an odd error. Upvote 0
If you comment out that offending line, does it compile? I suspect that you've not ended a sub correctly and its giving you an odd error.
Y yemi1979 Member Licensed User Longtime User Sep 16, 2013 #9 Erel, I have attached the zip file. eps, It compiles when I comment out the line. I know it's probably something very small that I can't just find. The subs are all ended. Thanks for your help in advance Attachments Midas.zip 98.3 KB · Views: 233 Upvote 0
Erel, I have attached the zip file. eps, It compiles when I comment out the line. I know it's probably something very small that I can't just find. The subs are all ended. Thanks for your help in advance
Y yemi1979 Member Licensed User Longtime User Sep 16, 2013 #10 Erel, Btw, it's the discovery module. line 116 Thanks Upvote 0
Y yemi1979 Member Licensed User Longtime User Sep 17, 2013 #11 Guys, I found the problem. The IDE doesn't like when I copy and paste code from Microsoft word. I usually write some code on the road in word and paste it into B4A. I knew it had to be something simple. Thanks again Upvote 0
Guys, I found the problem. The IDE doesn't like when I copy and paste code from Microsoft word. I usually write some code on the road in word and paste it into B4A. I knew it had to be something simple. Thanks again
eps Expert Licensed User Longtime User Sep 17, 2013 #12 Great and thanks for posting the solution. I suspect that the quotes were getting changed to ones that the IDE didn't like. Maybe try Notepad++ or something similar? I use that for lots of other editing. Upvote 0
Great and thanks for posting the solution. I suspect that the quotes were getting changed to ones that the IDE didn't like. Maybe try Notepad++ or something similar? I use that for lots of other editing.