[Gambas-user] Strange behaviour of File.Read

2017-06-21 Thread bill-lancaster via Gambas-user
I must be missing something - any ideas?
Gambas3.9.2
Components, gb.form, gb,gui, gb.image

This is the code:-

Public Sub Button1_Click()
Dim s As String
  s = File.Load(User.Home &/ "Pictures/PhotoFolder.txt")
  Print s
  Print IsDir(s)
  Print IsDir("/home/bill/Pictures/Family/Visits/2000-07-29")
End

This is the output:-

"/home/bill/Pictures/Family/Visits/2000-07-29"

False
True





--
View this message in context: 
http://gambas.8142.n7.nabble.com/Strange-behaviour-of-File-Read-tp59467.html
Sent from the gambas-user mailing list archive at Nabble.com.

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Strange behaviour of File.Read

2017-06-21 Thread bill-lancaster via Gambas-user
Thanks so much for the insight.

IsDir(Trim(s)) still produced False, but I tried saving the path with a
Variant instead of a string and now I get True

Thanks again



--
View this message in context: 
http://gambas.8142.n7.nabble.com/Strange-behaviour-of-File-Read-tp59467p59481.html
Sent from the gambas-user mailing list archive at Nabble.com.

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Strange behaviour of File.Read

2017-06-21 Thread bill-lancaster via Gambas-user
The directory string was written from a directory chooser, originally via a
string variable - this is where the quotes came from.
Using a variant produces a string without quotes and presumably without \n
Thanks again



--
View this message in context: 
http://gambas.8142.n7.nabble.com/Strange-behaviour-of-File-Read-tp59467p59493.html
Sent from the gambas-user mailing list archive at Nabble.com.

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] textarea won't accept text

2017-07-28 Thread bill-lancaster via Gambas-user
I'm obviously missing something here but have just added a textarea control
to my form.
I can display text in it from code but can only enter one character.
Any ideas?



--
View this message in context: 
http://gambas.8142.n7.nabble.com/textarea-won-t-accept-text-tp59911.html
Sent from the gambas-user mailing list archive at Nabble.com.

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] textarea won't accept text

2017-07-28 Thread bill-lancaster via Gambas-user
Thanks for the ideas, Textarea works in other projects.
A copy of the the offending project is attached.
MusicLibraryCreate-0.gz
  

Meanwhile, I'll see if I can make a simpler version.



--
View this message in context: 
http://gambas.8142.n7.nabble.com/textarea-won-t-accept-text-tp59911p59933.html
Sent from the gambas-user mailing list archive at Nabble.com.

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] textarea won't accept text

2017-07-28 Thread bill-lancaster via Gambas-user
Sorry, my mistake.
The textarea control works fine if I don't intercept key strokes. 
(Form_KeyPress())
Thanks again for the responses



--
View this message in context: 
http://gambas.8142.n7.nabble.com/textarea-won-t-accept-text-tp59911p59961.html
Sent from the gambas-user mailing list archive at Nabble.com.

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user