Android Question [Solved] Is there way convert object to string?

Theera

Expert
Licensed User
Longtime User
My code has error. Is there way to resolved this problem.
B4X:
        'OCR.OCR("Yourlanguage",xui.LoadBitmap(File.DirAssets,"image.jpg"),False,True)
        CustomListView1.AddTextItem(OCR.OCR("tha",xui.LoadBitmap(ChooserResult.MediaDir, ChooserResult.MediaFile),False,True).As(String),"")

Refer to this
 
Solution
My code has error. Is there way to resolved this problem.
B4X:
        'OCR.OCR("Yourlanguage",xui.LoadBitmap(File.DirAssets,"image.jpg"),False,True)
        CustomListView1.AddTextItem(OCR.OCR("tha",xui.LoadBitmap(ChooserResult.MediaDir, ChooserResult.MediaFile),False,True).As(String),"")

Refer to this
B4X:
OCR.OCR("tha",xui.LoadBitmap(ChooserResult.MediaDir, ChooserResult.MediaFile),False,True)
The method has no return value. you should add item in OCR_finished event

teddybear

Well-Known Member
Licensed User
My code has error. Is there way to resolved this problem.
B4X:
        'OCR.OCR("Yourlanguage",xui.LoadBitmap(File.DirAssets,"image.jpg"),False,True)
        CustomListView1.AddTextItem(OCR.OCR("tha",xui.LoadBitmap(ChooserResult.MediaDir, ChooserResult.MediaFile),False,True).As(String),"")

Refer to this
B4X:
OCR.OCR("tha",xui.LoadBitmap(ChooserResult.MediaDir, ChooserResult.MediaFile),False,True)
The method has no return value. you should add item in OCR_finished event
 
Upvote 0
Solution
Top