Device IDE Editor: Maximum Number of Lines about 3000.

Discussion in 'Questions (Windows Mobile)' started by pdablue, Jun 23, 2009.

  1. pdablue

    pdablue Active Member Licensed User


    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.
  2. Erel

    Erel Administrator Staff Member Licensed User

    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.
  3. taximania

    taximania Well-Known Member Licensed 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 has '15' subs to alter the Timer1.Interval=?

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


    Sub Globals
    'Declare the global variables here.
    End Sub

    Sub App_Start
    End Sub

    Sub ComboBox1_SelectionChanged (Index, 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: Jun 23, 2009
  4. pdablue

    pdablue Active Member Licensed User

    Maximum Number of code lines.


    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.
  5. taximania

    taximania Well-Known Member Licensed User

    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 :sign0087:
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice