B4A Question Read text file from Assets - Erel (first post)    Feb 4, 2013 Please use tags (without spaces) when posting code.
Note that this line is not needed:
File.OpenInput(File.DirAssets,"phoneno.txt")
You haven't written which line raises the error. However the assets folder is a read-only folder. You cannot write to a file there.... B4A Question Read and Replace Extended Ascii characters from a text file in DirAssets? - Erel (first post)    Aug 25, 2014 Use TextReader.ReadList instead of ReadAll.... B4A Tutorial [B4X] TextEditor - Save and load external files - Erel    Sep 10, 2023   (37 reactions) -list-of-other-related-methods.129897/#content Allow other apps to view text files using this app...-with-activityviewcontroller.73159/#content This also allows saving the text with the Files app. Allow other apps to view text files using this app: https://www.b4x.com/android/forum/threads/open-external...This is a B4i and B4A example, which demonstrates various external files related tasks. 116714.... B4A Load external files, including online files, using ContentChooser. Save to an external target... Tool [B4X] Forms Builder - Designer for B4XPreferencesDialog - Erel    Sep 22, 2019   (35 reactions)   tags: Forms Builder, B4XPreferences, Designer, preferance form builder https://www.b4x.com/basic4android/images/SS-2019-04-09_12.32.08.png FormsBuilder is a desktop tool that helps with building templates for B4XPreferencesDialog: https://www.b4x.com/android/forum/threads/b4x-b4xpreferencesdialog-cross-platform-forms.103842/#post-651047 The output of FormsBuilder is a json file that is loaded with: prefdialog.LoadFromJson(File.ReadString(File.DirAssets...: Multiline Text and Decimal Number. Note that you can set the height of multiline text fields. V1.10... B4A Question Copiar formato de celdas y agregar imagen en EXCEL - Peter Simpson (first post)    Apr 23, 2020 Yes, https://www.b4x.com/android/forum/pages/results/?query=Read+text+file+from+Assets... B4A Library [B4X] BCTextEngine / BBCodeView - Text engine + BBCode parser + Rich Text View - Erel    May 21, 2023   (68 reactions)   tags: Label BBCode, text style, RTF component, B4X, ritchtext, rich text issue in release mode.
The Img.Dir parameter is not needed when loading files from the assets...
hello
- prevents the internal text from being parsed.
- Changes the text color. Example:
Hello... images. Omit the dir parameter for assets files.
'width and height are required for remote images... BBLabel.Text to an empty string didn't remove the text.
- v1.71 - New Font tag: https://www... B4A Example Getting file info using uri from content chooser or from received shared file - example - Nokia    May 4, 2020   (22 reactions) example of getting file property information from uri provided by content chooser or received file shared to the app. Curtesy of Erel’s example: Received Share. Shows File name, Mime Type, date modified, file size and a list of all columns from that particular content provider. updated code to show information from Gallery content.... B4A Library [B4X] B4XPreferencesDialog - Cross platform forms - Erel    Nov 12, 2021   (50 reactions)   tags: preference, B4X, builder, B4X B4XPreferencesDialog .104670/ The template file is loaded with: prefdialog.LoadFromJson(File.ReadString(File.DirAssets... Result = xui.DialogResponse_Positive Then PrintOptions(Options1, TextArea1) End If The data map... and DefaultHintLargeSize fields. V1.73 - Color field accepts text input: 112412 New dependency... that can be used to provide more information. Note that the explanation text is part of the template... method). V1.62 - Fixes an issue in B4A where the dialog can scroll to one of the text fields after... B4A Code Snippet Get the path to media files returned from ContentChooser - Erel    Jul 24, 2022   (8 reactions)   tags: Adjuntar un File It is a mistake to try to get a file path from the returned resource. It will not work in most cases, and even if you will be able to get the path, you will not be able to access it. You can use File... files SubName: GetPathFromContentResult Description: Content providers such as the media gallery... GetPathFromContentResult(UriString As String) As String If UriString.StartsWith("/") Then Return UriString... assume that the resource returned from ContentChooser comes from the file system and if... B4J Library XLUtils / jPOI 5 - Read and write MS Excel workbooks - Erel    Mar 4, 2022   (38 reactions) As XLReaderResult = XL.Reader.ReadRange(File.DirAssets, "Countries of the world.xlsx"... result As XLReaderResult = XL.Reader.ReadSheetByName(File.DirAssets, "Countries of the world.xlsx... = XL.Reader.ReadRange(File.DirAssets, "Countries of the world.xlsx", "Sheet1!B3:E1000... data from a workbook. Can read the complete workbook, a single sheet or one or more ranges. Ranges... such cells, when needed, with empty strings. Later when you read the data you can use result.GetDefault... Page: 1   2   3   4   5   6   7   |