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
  #21 (permalink)  
Old 11-06-2009, 06:18 PM
klaus's Avatar
Basic4ppc Expert
 
Join Date: Oct 2007
Location: Fully, Switzerland
Posts: 3,827
Awards Showcase
Forum Contributer Beta Tester Competition Winner 
Total Awards: 3
Default

You must change your line:
Code:
Control("Label" & y).text=""
into:
Code:
Control("Label" & y,<font color="red">Label</font>).text=""
B4PPC 6.80 needs the control or object type in the Control statement.

Best regards.
__________________
Klaus
Switzerland
Reply With Quote
  #22 (permalink)  
Old 11-06-2009, 06:24 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 5,953
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default

It's a bug. See this thread http://www.basic4ppc.com/forum/bug-r...d-compile.html Right at the end in post #9 there is a fix for the problem.
__________________
Sorry, but I don't answer questions by PM or email.
Please post your queries in the forum.
Reply With Quote
  #23 (permalink)  
Old 11-06-2009, 07:00 PM
taximania's Avatar
Basic4ppc Expert
 
Join Date: May 2007
Location: Derbyshire. UK
Posts: 585
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Cheers Klaus

I'd looked at the helpfile, it says:

Quote:
The following properties does not require you to specify the type:
Text bla bla ...
Guess I should have tried it before posting
__________________
.
.
.
Don't ask, I'm fine, honest. !!
.
.
.
Just a little crazy at times



O2 XDA, GW Evo 2.1 UC WWE Rom, WM6.1
Radio Ver 03.34.90
With Basic4ppc V6.80


http://www.taximania.co.uk
Reply With Quote
  #24 (permalink)  
Old 11-06-2009, 07:15 PM
taximania's Avatar
Basic4ppc Expert
 
Join Date: May 2007
Location: Derbyshire. UK
Posts: 585
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Cheers Agraham.

I missed your post before replying to Klaus whilst editing 750 lines of code for every 'Control' keyword it contained.

All running OK now
__________________
.
.
.
Don't ask, I'm fine, honest. !!
.
.
.
Just a little crazy at times



O2 XDA, GW Evo 2.1 UC WWE Rom, WM6.1
Radio Ver 03.34.90
With Basic4ppc V6.80


http://www.taximania.co.uk
Reply With Quote
  #25 (permalink)  
Old 12-04-2009, 06:40 PM
Knows the basics
 
Join Date: Dec 2007
Posts: 76
Default Adding DLL error

Hi all,

I'm doing some experiments creating and building custom libraries, using #develop and trying to learn C#.

After building a source library in VB.net found on Internet and targeting .NET 2.0 (not CF, it should be a Desktop only DLL), adding such DLL to a B4PPC project I got the attached error.

What's the meaning? Any suggestion on how to fix/avoid such message?

Thanks

Mimmo
Attached Images
File Type: jpg err.JPG (8.9 KB, 13 views)
Reply With Quote
  #26 (permalink)  
Old 12-04-2009, 06:48 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 5,953
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default

It usually means that you have a class in a library with a name that already exists in another library or in Basic4ppc. Namespaces are not respected in Basic4ppc libraries so name clashes must be avoided. Also Private is not respected so you will see unwanted objects appearing in the Add Object menu list. You can hide unwanted classes/structs/enums by prefacing their name with an underscore. However with VB you will probably unavoidably see extra stuff added by the VB compiler. C# doesn't (usually!) do this.

Private for fields is however respected and can be used to hide them Personally I make all fields Private and implement Properties to access them.

Also avoid nested classes in a Basic4ppc library, it doesn't handle them gracefully.
__________________
Sorry, but I don't answer questions by PM or email.
Please post your queries in the forum.
Reply With Quote
  #27 (permalink)  
Old 12-04-2009, 06:56 PM
Knows the basics
 
Join Date: Dec 2007
Posts: 76
Default

Hello Agraham,

fast as usual....

many thanks for your suggestions... I'll have a depth look at the source (as I said the library is not the mine and I'm trying to learn from other).

thanks again

Mimmo
Reply With Quote
  #28 (permalink)  
Old 12-09-2009, 12:42 PM
Junior Member
 
Join Date: Aug 2007
Posts: 11
Default Too many character in character literal

The app I'm working on used to compile fine, but I made a few changes and now it doesn't compile in any flavour. Here's the error message:

Error compiling program.
\\Profile\AppData(Roaming)\Anywhere Software\Basic4ppc\Tzor\Class1.cs(297,10): error CS1012: Too many characters in character literal

I've rem'd out swathes of code trying to identify the problem, but have drawn a blank. If I had a bit more to go on I may have a chance.

I'm using Vista and 6.80.01 of B4PPC.

Thanks for any light you can shed on this.

Last edited by Graley : 12-09-2009 at 12:47 PM.
Reply With Quote
  #29 (permalink)  
Old 12-09-2009, 01:28 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 5,953
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default

It look like something in your Basic4ppc code is confusing the optimising compiler and it is producing bad C# code. Keep hacking bits away till the error goes, if you get it small and it still won't compile then post the source.
__________________
Sorry, but I don't answer questions by PM or email.
Please post your queries in the forum.
Reply With Quote
  #30 (permalink)  
Old 01-05-2010, 05:06 PM
Senior Member
 
Join Date: Dec 2007
Posts: 149
Awards Showcase
Beta Tester Beta Tester 
Total Awards: 2
Default Problem with optimized compilation

Hello erel,
I tried to compile a windows.exe in optimized compilation Mode and get an error. I know the error from a missing Object declaration. But now it is the line where a Sub begins. What is to do?
PS:I only paste the sub because the whole project is to large.
Best regards and a happy new year
bernd goedecke



Sub GetLen <--- Here the compiler produced the error: Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.
a = 0
tzerr = ""
f=False
Main.DatAnz=0
Dim Main.SpW(Main.SpAnz)
Dim Main.SpWM(Main.SpAnz)
Dim Main.SpTyp(Main.SpAnz)
Dim Main.SpForm(Main.SpAnz)
Dim Main.NumCol(Main.SpAnz)
Dim Main.DatCol(Main.SpAnz)
Dim Main.DezCol(Main.SpAnz)
FStr=""
For i = 0 To Main.SpAnz-1
Main.NumCol(i) = True
Main.DatCol(i) = True
Main.DezCol(i) = True
Next
Do While dum <> EndStr AND dum <> EOF
If Main.DatAnz Mod 100 = 0 Then
TBConDeb.Text = "Ermittle VarChar-Länge: " & Aktdat & " Datensatz:" & Main.DatAnz
DoEvents
End If
If TxtTyp = "SAP Dynamische-Liste" Then
dum = SubString (dum,1, dLen-3)
End If
Main.TempArr() = StrSplit(dum, Delim)
If ArrayLen(Main.TempArr()) <> Main.SpAnz Then
EdKStr = TZErrIn.Show("beheben..","Trennzeichenfehler",dum, 0,0)
Main.TempArr() = StrSplit(EdKStr, Delim)
End If
For i = 0 To Main.SpAnz-1
If TxtTyp = "SAP Dynamische-Liste" Then
Main.TempArr(i) = StrEx.Trim(Main.TempArr(i))
End If
If ArrayLen(Main.TempArr()) = Main.SpAnz Then
Main.SpW(i) = StrLength(Main.TempArr(i))
If Main.SpW(i) > Main.SpWM(i) Then
Main.SpWM(i) = Main.SpW(i)
End If
If a > Main.SpAnz-1 Then
If Main.TempArr(i)<>"" Then
Match2.Value = Regex2.Match(Main.TempArr(i))
Match22.Value = Regex22.Match(Main.TempArr(i))
If Match2.Success=False OR Match22.Success=True Then
Main.DezCol(i) = False
End If
Match5.Value = Regex5.Match(Main.TempArr(i))
If IsNumber(Main.TempArr(i)) = False OR Match5.Success=True Then
Main.NumCol(i) = False
End If
Match1.Value = Regex1.Match(Main.TempArr(i))
If Match1.Success=False Then
Main.DatCol(i) = False
End If
End If
End If
Else
For j = 0 To ArrayLen(Main.TempArr())-1
FStr = FStr & CRLF & Main.TempArr(j)
Next
F=True
End If
Next
If F=True Then
tzerr = tzerr & Main.DatAnz+1 & ", "
Msgbox("Trennzeichenfehler in Zeile: " & Main.DatAnz+1 & " " & dum)
F=False
End If
dum = FileRead(c1)
a = a+1
Main.DatAnz = Main.DatAnz+1
Loop
TBConDeb.Text = " Datensätze:" & Main.DatAnz
For i = 0 To Main.SpAnz-1
If i < Main.SpAnz-1 Then
If Main.SpWM(i) < 256 Then
If Main.SpWM(i) < 1 Then
Main.SpTyp(i) = "VARCHAR"
Main.SpWM(i)=1
Main.SpForm(i) = Main.SpWM(i)
Else
Main.SpTyp(i) = "VARCHAR"
Main.SpForm(i) = Main.SpWM(i)
End If
Else
Main.SpTyp(i) = "TEXT"
Main.SpForm(i) = ""
End If
Else
If Main.SpWM(i) < 256 Then
Main.SpTyp(i) = "VARCHAR"
Main.SpForm(i) = Main.SpWM(i)
Else
Main.SpTyp(i) = "TEXT"
'SpForm(i) = ""
End If
End If
If Main.NumCol(i) = True Then
Main.SpTyp(i) = "INTEGER"
End If
If Main.DatCol(i) = True Then
Main.SpTyp(i) = "DATE"
End If
If Main.DezCol(i) = True AND Main.NumCol(i) = False Then
Main.SpTyp(i) = "REAL"
End If
Next
End Sub
Attached Images
File Type: jpg GetLen Error.jpg (27.6 KB, 12 views)
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 08:07 PM
ERROR:Message cdeane Questions (Windows Mobile) 10 07-21-2008 07:59 PM
HTTP POST error message miataman Questions (Windows Mobile) 10 07-11-2008 11:28 AM
HTTP POST error Elrick Bug Reports 3 05-24-2008 03:06 PM
HTTP POST on Device - error message TWELVE Questions (Windows Mobile) 6 04-26-2008 10:35 AM


All times are GMT. The time now is 05:33 AM.


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