Android Question [Solved]Problem about filehandler library.

Olaan

Expert
Licensed User
Longtime User
I need create excel file via creating csv file ,but I have some error code. How to solved it?

P.S. I have to use non-b4xpages coding strategy.
Unknown type: contentchooser<br />Are you missing a library reference?
Unknown type: contentchooser<br />Are you missing a library reference?
Unknown type: b4xset<br />Are you missing a library reference?
Unknown type: resultset<br />Are you missing a library reference?
 

Attachments

You are missing these library references
1.FileProvider
2.B4XCollections
3.SQL
 
Upvote 0
I still have error message as belows
[Quate]
B4A Version: 13.30
Parsing code. Error
Error parsing program.
Error description: Undeclared variable 'b4xpages' is used before it was assigned any value.
Error occurred on line: 82 (FileHandler)
Dim Activity As Activity = B4XPages.GetNativeParent(B4XPages.MainPage)
[/Quate]

I think about FileHandler library is not supported both of Non-B4XPage and B4XPages likes this
 
Upvote 0
Where you get the problematic code from
If you mean that non-b4xpage andB4XPages supported, I've tried for testing both of them.
 
Upvote 0
In MyLib , I will code both of them as belows when I create a project by using non-b4xpage, it will be supported , on another hand, when I create a project by using b4xpages, it will be supported, as well. (refer to the same library)So I think filehandler lib lacked this.

Code:
Try
    'using  B4XPages  code
 

Catch
     'using  Not B4XPagescode


End Try
 
Upvote 0
Upvote 0
Solution
B4XPages is the way to go.
Don't waste your time on the default template.
In TextEditor example.There is Filehandler.bas file,and Filehandler.b4xlib is additional lib.
 
Upvote 0
Don't mix B4XPages with non-B4Xpages project if you are not sure what you are doing.
So I did it only mylib for myself.
 
Upvote 0
Back
Top