Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Questions (Windows Mobile)
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Questions (Windows Mobile) Post any question regarding Basic4ppc.

Encountered a confusing error message? Please post here

Reply
 
LinkBack Thread Tools Display Modes
  #41 (permalink)  
Old 01-30-2010, 03:21 PM
Newbie
 
Join Date: Jan 2010
Posts: 5
Default

The following code compiles OK in IDE but produces Error CS1026 in Line 10 when compiling:

Sub Globals
Dim Res
End Sub

Sub Add( param1, param2)
Return param1 + param2
End Sub

Sub App_Start
Res = Add( 1 , 2)
End Sub
Reply With Quote
  #42 (permalink)  
Old 01-30-2010, 03:25 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,734
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

It seems to me that you are using a broken version.
Please send me an email to erel@basic4ppc.com and I'll send you a link to the correct version.
Reply With Quote
  #43 (permalink)  
Old 02-15-2010, 05:59 AM
Basic4ppc Expert
 
Join Date: Apr 2009
Posts: 506
Default Error in Compile

Thew error message is CS1026: ) expected

The line that throws the error is this one
x=0
I have tried different configurations but no luck

Code=WDSales.tblProducts.SelectCell("Code",x)

this is the full code snippet

WDSales.tblProducts.LoadCSV ("CeProducts.csv", ",", True, True)
For x = 0 To WDSales.tblProducts.RowCount
Code=WDSales.tblProducts.SelectCell("Code",x)
Cmd.CommandText="DELETE FROM Products WHERE Code='" & Code & "'"
Cmd.ExecuteNonQuery
cmd.CommandText = "INSERT INTO Products SELECT Code,SupplierCode,BinLoc,Description,QtyInStock from TempTable"
cmd.ExecuteNonQuery
Next

I am suspecting that it is because the table is being defined only by the LoadCSV command but that csv file does have a field called code in it.
Is it necessary to define the whole table first?

Thanks Joe
Reply With Quote
  #44 (permalink)  
Old 02-15-2010, 06:26 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,734
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

This line throws the error?
Code:
For x = 0 To WDSales.tblProducts.RowCount
Reply With Quote
  #45 (permalink)  
Old 02-16-2010, 04:04 AM
Basic4ppc Expert
 
Join Date: Apr 2009
Posts: 506
Default

sorry, i did not make it too clear. the line that throws the error is this one

Code=WDSales.tblProducts.SelectCell("Code",x)

I have tried assigning a value instead of x but it does not work either

Thanks
Reply With Quote
  #46 (permalink)  
Old 02-16-2010, 07:59 AM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 6,072
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default

SelectCell does not return a value. You need to use Cell for that.
__________________
Sorry, but I don't answer questions by PM or email.
Please post your queries in the forum.
Reply With Quote
  #47 (permalink)  
Old 02-16-2010, 11:35 AM
Basic4ppc Expert
 
Join Date: Apr 2009
Posts: 506
Default

Thank you Andy,

As usual the simple mistakes are often the hardest to see yourself

Cheers

Joe
Reply With Quote
  #48 (permalink)  
Old 02-23-2010, 01:08 PM
Junior Member
 
Join Date: Jul 2009
Location: Derbyshire, UK
Posts: 36
Default SQL Transation error

I wrote a program for a mobile device with GPS, which updates a database.
My customer has recently got another device, so now I have two databases, and need to merge the updates.
I have written a (desktop) program which uses 2 connections, commands and reader objects so that I can find records in one database which are newer than the 'master' database. I'm assembling an 'Update' SQL command, using parameters, but the Conn1.EndTransaction causes this error:
"SQLite error
cannot commit transaction - SQL statements in progress
"
At first I wondered if there were too many fields/values [34], so I commented some of it out, but still get the error. I'd had a few SQL errors, causing the program to abort, so I wondered if the 'BeginTransaction' had left the database in an odd state, but I can update it with my original program, and also using 'Sqliteman'.
I've commented out the 'BeginTransaction' and 'EndTransaction', and it has successfully updated one record. (not tried all fields yet; still commented out)

I've fixed it.. I had two Readers on the same connection; one to get the existing values, and one to do the update - and the first one wasn't closed when I did the update.

Last edited by nl1007 : 02-23-2010 at 03:06 PM.
Reply With Quote
  #49 (permalink)  
Old 03-01-2010, 01:14 PM
konisek's Avatar
Knows the basics
 
Join Date: Jan 2009
Posts: 55
Default

Since yesterday I have got a strange message while using HTTP library:
Code:
Response code: - 1
NameResolutionFailure
Before it worked fine.
Strange is that even neither Internet Explorer nor Opera browser do not work any more.
Connection via Network library works fine though.
Soft reset has no effect. I did not change any registry. Any idea?
Reply With Quote
  #50 (permalink)  
Old 03-03-2010, 05:45 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,734
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

Sounds like some DNS problem.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Need help with error message skmobile Questions (Windows Mobile) 2 09-07-2008 07:07 PM
ERROR:Message cdeane Questions (Windows Mobile) 10 07-21-2008 06:59 PM
HTTP POST error message miataman Questions (Windows Mobile) 10 07-11-2008 10:28 AM
HTTP POST error Elrick Bug Reports 3 05-24-2008 02:06 PM
HTTP POST on Device - error message TWELVE Questions (Windows Mobile) 6 04-26-2008 09:35 AM


All times are GMT. The time now is 10:22 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0