Android Question [Solved]Unknown type: regexbuilder Error

Theera

Well-Known Member
Licensed User
Longtime User
Refer to this ,I've use Regexbuilder class indirectly for my study project. How do I solve it.
 

Attachments

  • error.png
    error.png
    3.5 KB · Views: 15
Solution
I have understand already.
Thefirst RegrexBuilder is bas file, due to Erel told us RegrexBuilder can used inB4A, B4J, and B4i, soI convert it as B4XRegrexBuilder
, Before I had converted, I must change rx as
B4XRegrexBuilder which is not be RegrexBuilder.

Theera

Well-Known Member
Licensed User
Longtime User
Is RegexBuilder.bas showing as a Class tab in your project? eg:

View attachment 159898
I selected to convert b4xlib before and then using in another b4xlib as utility of library which I added thelibrary in manifest file already and the last , I use the utility library with my project, but it has error.
 
Upvote 0

Theera

Well-Known Member
Licensed User
Longtime User
RegexBuilder.bas-->B4XRegrexBuilder.b4xlib--->B4XStringFunctionVb(utility about vb func
for non-expert)--->
ThaiUtil(utility about Thai language)--->myproject
 
Upvote 0

emexes

Expert
Licensed User
Are you trying to convert RegexBuilder.bas Class to a b4xlib libary?

If this is what you are aiming for:

1735193937697.png


then what I did is:
- start a new blank B4J console (non-UI) project
- added RegexBuilder.bas Class file downloaded from the forum post you referred to
- menu Project, Compile to Library
- I called the library "RegexBuilderTestLibrary" but presumably you can call yours whatever you like
- B4J created b4xlib in the Additional Libraries folder
- start a new blank B4J project
- right-click the list of libraries in the Libraries Manager tab, choose "Refresh"
- find and tick the new library
- type in the test code to make sure that B4J has included the Library and recognises the RegexBuilder Class
 
Upvote 0

Theera

Well-Known Member
Licensed User
Longtime User
Hi again,
I have tried to haircut my code. and I 've attached with b4xlib files.

P.S. I wish B4XStringFunctionVB (Credit: Magret from US.) is internal library because it helps non-experts to study code and quickly do the code.
 

Attachments

  • TestB4XStringFunctionVB.zip
    11.5 KB · Views: 5
  • B4XStringFunctionVB.b4xlib
    6.6 KB · Views: 5
  • B4XRegexBuilder.b4xlib
    1.4 KB · Views: 5
Upvote 0

Theera

Well-Known Member
Licensed User
Longtime User
I have understand already.
Thefirst RegrexBuilder is bas file, due to Erel told us RegrexBuilder can used inB4A, B4J, and B4i, soI convert it as B4XRegrexBuilder
, Before I had converted, I must change rx as
B4XRegrexBuilder which is not be RegrexBuilder.
 
Upvote 0
Solution
Top