[Question] Notepad-like

XverhelstX

Well-Known Member
Licensed User
Longtime User
[Questions]

Hello everyone,

I'm new here on the forums, but not new in programming.
Altough I have a few questions about 'Basic4Android'.

[SOLVED] How do you pick/select files with an open file dialog? and open them?
and also how do you show the selected text file and edit it and save it like in Notepad?

It's long time ago since I have used Visual Basic like style.
Most time I used Game Maker and I now switched to android. but there are some things i forgot.
for example: how do I work and interpretate the following URL: so how do I follow it

Basic4android - Dialogs

Something like this then: InputDialog.show("Save your file as *.$", "Save As.", "Save", "Cancel", "Return")?

and what do I have to declare?

[ANSWER] You need to use a library

--------------------------------------------------------------------------------------------------------

[SOLVED] New question:
k, I have a new question. I'd like input in my txtBox the following string:

<html xmlns="http://www.w3.org/1999/xhtml">

so this would look like this then

txtBox.text = "<html xmlns="http://www.w3.org/1999/xhtml">"

but the quotes collisions with the quotes used in the link.
so is there another method to do it like with tostring or something?

[ANSWER]

B4X:
txtBox.text = "<html xmlns=" & QUOTE & "http://www.w3.org/1999/xhtml" & QUOTE & ">"
B4X:
txtBox.text = "<html xmlns=~http://www.w3.org/1999/xhtml~>".Replace("~", QUOTE)

thank you very much!

XverhelstX
 
Last edited:

XverhelstX

Well-Known Member
Licensed User
Longtime User
Ok, I have a new question. I'd like input in my txtBox the following string:

<html xmlns="http://www.w3.org/1999/xhtml">

so this would look like this then

txtBox.text = "<html xmlns="http://www.w3.org/1999/xhtml">"

but the quotes collisions with the quotes used in the link.
so is there another method to do it like with tostring or something?

Thanks,

XverhelstX
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
It is better to ask a new question in a new thread.
You can either change the text to: <html xmlns='http://www.w3.org/1999/xhtm'> which is valid as well.
Or you can write it like this:
B4X:
txtBox.text = "<html xmlns=" & QUOTE & "http://www.w3.org/1999/xhtml" & QUOTE & ">"
Or you can also write:
B4X:
txtBox.text = "<html xmlns=~http://www.w3.org/1999/xhtml~>".Replace("~", QUOTE)
 
Upvote 0

XverhelstX

Well-Known Member
Licensed User
Longtime User
It is better to ask a new question in a new thread.
You can either change the text to: <html xmlns='http://www.w3.org/1999/xhtm'> which is valid as well.
Or you can write it like this:
B4X:
txtBox.text = "<html xmlns=" & QUOTE & "http://www.w3.org/1999/xhtml" & QUOTE & ">"
Or you can also write:
B4X:
txtBox.text = "<html xmlns=~http://www.w3.org/1999/xhtml~>".Replace("~", QUOTE)

Oh, OK thank you very much!

I thought it was more organized and structured when I just use one thread and edit it that way. So you won't have a bunch of topics with questions ;)

thank you Erel!

XverhelstX
 
Upvote 0
Top