Device IDE Editor: Maximum Number of Lines about 3000.

pdablue

Active Member
Licensed User
Longtime User
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.
 

taximania

Well-Known Member
Licensed User
Longtime User
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 http://www.b4x.com/forum/share-your-creations/4397-simple-slide-show-program-example-pda.html#post25210 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


B4X:
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 :sign0142:
Only trying to help :sign0089:
 
Last edited:

pdablue

Active Member
Licensed User
Longtime User
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.
 
Top