Choose Folder - Optimized Compilation

orhan

Member
Licensed User
Hi,

I upgraded to version 6.30, and liked the idea to use "Device (Force QVGA)" compilation, and for this I have to use "Optimized Compilation".

I have some problems with "Choose Folder" sample I found on forum, and successfully used it without "Optimized Compilation".

Can someone have a look to the sample attached and make it work with "Optimized Compilation" ?

Thanks!
 

Attachments

  • Test_LoadFile.zip
    15.9 KB · Views: 184

orhan

Member
Licensed User
Hi,

I made the modification, as Agraham suggested, and also the sample from Erel.
But on Device I get the same error.

"An error occurred on sub_app_start.
An error message cannot be displayed ...."

On device I have .Net CF v2.0 installed.
 

orhan

Member
Licensed User
My bad, I didn't copy the image files.
I supposed that they were embedded in the executable.

Thanks!
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
Currently FolderChooser loads the two files at runtime.
If you want you can add an ImageList with the two image files and change:
B4X:
    tree.AddImage1(AppPath & "\folder.bmp")
    tree.AddImage1(AppPath & "\openFolder.bmp")
To:
B4X:
    tree.AddImage1(ImageList1.Item(0))
    tree.AddImage1(ImageList1.Item(1))
That will cause the images to be embedded in the executable.
 

orhan

Member
Licensed User
Just one more question that is not related with "ChooseFOlder", but about "Optimized Compilation"

I get errot CS1002: ; expected

datafile = AppPath & "\Database\" VesselName.text & ".csv"
 

DaveW

Active Member
Licensed User
Longtime User
Currently FolderChooser loads the two files at runtime.
If you want you can add an ImageList with the two image files and change:
B4X:
    tree.AddImage1(AppPath & "\folder.bmp")
    tree.AddImage1(AppPath & "\openFolder.bmp")
To:
B4X:
    tree.AddImage1(ImageList1.Item(0))
    tree.AddImage1(ImageList1.Item(1))
That will cause the images to be embedded in the executable.

Small point, the new lines should be:
tree.AddImage2(ImageList1.Item(0))
tree.AddImage2(ImageList1.Item(1))
 
Top