Results 1 to 6 of 6

Thread: [RESOLVED] CE 5.0 Emulator and eVB 3.0

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Apr 2004
    Location
    Belfast
    Posts
    116

    Resolved [RESOLVED] CE 5.0 Emulator and eVB 3.0

    Hi all,

    I had developed an app in VB6, i brought in the forms and saved them in an eVB project, it removed some of the backround colours but brought in the code, its only a simple app that involves a lot of text boxes, lcombo boxes and outputting to a csv file.

    Ive never used eVB before so dont really know if any of the syntax is different, ive tried to compile the app in eVB so it can run in the emulator but i get an error on this line:

    Open "invoice.log" For Input As #1

    it says "Expected end of statement" the program runs fine when compiled in VB6 but im not really what i need to change, any help would be great, thanks.

  2. #2
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: CE 5.0 Emulator and eVB 3.0

    The way to open files is a bit different in eVB, you need to add a File control (I think it should be in your toolbox, and use code like this:
    VB Code:
    1. File1.Open App.Path & "\invoice.log", fsModeBinary, fsAccessRead, fsLockRead
    2.   strFile = File1.Input(File1.LOF)
    3.   File1.Close
    The variable strFile will then have the entire file contents.

    As a general rule eVB is VBScript rather than proper VB. This means that some things (like With) are not supported, and data types (Integer/String/...) mean nothing - everything is a variant.

    Most code is ok, but I should warn you that the emulator has serious problems on Win XP (I couldnt get it to work with SP2), and eVB is not supported for devices with PocketPC 2003 or later (but it does actually work on PPC2003!).

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Apr 2004
    Location
    Belfast
    Posts
    116

    Re: CE 5.0 Emulator and eVB 3.0

    thanks for that si, after much weeping and gnashing of teeth i found it on a tutorial, why is eVB stupidly different to VB you would think out of common sense it would be the same!!!

  4. #4
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: CE 5.0 Emulator and eVB 3.0

    It is natural to assume that it is VB, as it has a very similar IDE etc, but it is infact VBScript (and interpreted at run time).

    Previously there was an extension to VB which allowed you to compile to PPC devices, but it is no longer available (and I dont think it is compatible either!).


    An alternative is to use .Net, as you can use normal code to write programs for PPC (as long as it is "Compact Framework" compatible). This is supported for all PPC OS's from 2002 onwards.

  5. #5

    Thread Starter
    Lively Member
    Join Date
    Apr 2004
    Location
    Belfast
    Posts
    116

    Re: CE 5.0 Emulator and eVB 3.0

    Cheers SI, think im pretty well sorted now, most of the syntax is the same and my program is pretty simple, manged to get the pocket pc emulator running as well, so figners crossed.

    Thanks

  6. #6
    Junior Member
    Join Date
    Sep 2006
    Posts
    29

    Talking Re: [RESOLVED] CE 5.0 Emulator and eVB 3.0

    Thank you so much! You are the greatest! Muah muah!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width