Basic4ppc - Windows Mobile Development  

Go Back   Basic4ppc - Windows Mobile Development > Main Category > Questions & Help Needed
Home Register FAQ Members List Search Today's Posts Mark Forums Read

Questions & Help Needed Post any question regarding Basic4ppc.


Device IDE Editor: Maximum Number of Lines about 3000.


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-23-2009, 03:37 PM
pdablue's Avatar
Knows the basics
 
Join Date: Sep 2007
Posts: 63
Question Device IDE Editor: Maximum Number of Lines about 3000.

Hi,

I have hit a maximum limit of about 3000 lines while writing code
on the device itself using the IDE Editor. While in the Editor, when I
get close to 3000 lines of code the editor will stop adding anymore
lines or characters to the program. I can save the file and load it
back in again but I can not add anything else to it.

I have to delete other sections of code in order to add anything else
to the program code.

I am using an HP Ipaq H2210 for code development. It is probably just
the limited memory on the device.

I was wondering if anyone else has hit a maximum line number limit
when using the Device IDE to enter program code?

It may vary depending on the device and the amount of memory available.

I am using Basic4ppc Version 6.3.

I guess I should use the Desktop IDE, you can probably enter many
thousands of lines of code before you reach a maximum limit.
Reply With Quote
  #2 (permalink)  
Old 06-23-2009, 04:51 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 4,533
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

The device native textbox control is limited to about 64k characters.
As of version 6.50 the solution is to separate your code into several modules.

You can use code files (added in Tools - Components) to include code from other files.
__________________
Basic4ppc reference list
Reply With Quote
  #3 (permalink)  
Old 06-23-2009, 07:05 PM
taximania's Avatar
Basic4ppc Veteran
 
Join Date: May 2007
Location: Derbyshire. UK
Posts: 447
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Hi Pdablue. Erel's suggestion is probably the best one for you.

If you remember a while ago, I told you there are better ways of coding.
IE: Don't use repetative 'Subs' for Controls, Labels etc etc.

Your slide show example A simple Slide Show program example for the PDA. has '15' subs to alter the Timer1.Interval=?

Use a ComboBox on your Form1 instead.
Load the ComboBox Data using the device IDE, etc

1000
2000
3000
4000
5000


Code:
Sub Globals
	'Declare the global variables here.
End Sub

Sub App_Start
	Form1.Show
	combobox1.SelectedIndex=0
End Sub

Sub ComboBox1_SelectionChanged (Index, Value)
Timer1.Interval=Value
End Sub
Thats not 15 lines of code. Never mind 15 seperate subs.

I learnt a lot from your website about the Bluetooth stuff
Only trying to help
__________________
.
.
.
Don't ask !!
.
.
.
I'm a little crazy at times



O2 XDA, GW Evo 2.1 UC WWE Rom, WM6.1
Radio Ver 03.34.90


http://www.taximania.net

Last edited by taximania : 06-23-2009 at 07:08 PM. Reason: 10,20,30,40,50 aren't very long intervals ;-)
Reply With Quote
  #4 (permalink)  
Old 06-24-2009, 06:27 PM
pdablue's Avatar
Knows the basics
 
Join Date: Sep 2007
Posts: 63
Smile Maximum Number of code lines.

Hi,

I actually made it to 2744 lines of program code before I could not
enter anymore characters into the Device IDE Editor. It seems that
I actually hit the 64k character limit.

I am using Basic4ppc Version 6.3, I will have to upgrade to the
latest version.

I will try to write more structured code in the future. At least I know
how many lines of code I can fit into a 64k block.
Reply With Quote
  #5 (permalink)  
Old 06-24-2009, 07:30 PM
taximania's Avatar
Basic4ppc Veteran
 
Join Date: May 2007
Location: Derbyshire. UK
Posts: 447
Awards Showcase
Beta Tester 
Total Awards: 1
Default

And feel free to ask about 'More Structured Code' questions.

We're here to help each other

I'm no expert, but always willing to look, and/or learn
__________________
.
.
.
Don't ask !!
.
.
.
I'm a little crazy at times



O2 XDA, GW Evo 2.1 UC WWE Rom, WM6.1
Radio Ver 03.34.90


http://www.taximania.net
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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Copy and Paste on Device B4PP editor Woinowski Basic4ppc Wishlist 21 06-18-2009 06:46 PM
Colors in the Device editor Cableguy Basic4ppc Wishlist 6 07-18-2008 11:05 AM
Rnd() ignores the maximum value Mistrel Questions & Help Needed 6 10-15-2007 03:15 PM
Search function in Help on device code editor Woinowski Basic4ppc Wishlist 2 08-26-2007 02:42 PM
find / search for the device editor BerndB Basic4ppc Wishlist 1 06-29-2007 09:52 AM


All times are GMT. The time now is 02:39 AM.


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