Search found 6 matches

by GBowlsby
Saturday 24th April 2021 11:02pm
Forum: Beginners
Topic: Multi line text areas
Replies: 6
Views: 639

Re: Multi line text areas

Good to know. Trying
by GBowlsby
Saturday 24th April 2021 11:00pm
Forum: Beginners
Topic: For loop files vs folders
Replies: 6
Views: 650

Re: For loop files vs folders

Thank you so much. It is working. Dim dirstring As String = "/home/gbowlsby/Desktop/" For Each filename As String In Dir(dirstring) If IsDir(dirstring & filename) Then TextArea1.Insert("File: " & filename & " is a folder\n") Else TextArea1.Insert("File: " & filename & " copied\n") Copy dirstring & f...
by GBowlsby
Saturday 24th April 2021 10:38pm
Forum: Beginners
Topic: For loop files vs folders
Replies: 6
Views: 650

Re: For loop files vs folders

So it is not working. Once it gets to a folder I get an error that says file is a folder and it stops on my Gambas_Projects. For Each filename As String In Dir("/home/gbowlsby/Desktop/") If IsDir(filename) Then TextArea1.Insert("File: " & filename & " is a folder and not copied\n") Else TextArea1.In...
by GBowlsby
Saturday 24th April 2021 8:59pm
Forum: Beginners
Topic: For loop files vs folders
Replies: 6
Views: 650

For loop files vs folders

I want to copy all files from a folder to a new folder excluding folders. So in my test I have two folders Gambas_Projects and NewFolder2 below code I am using an if statement for individual folders. Is there a way to say if file = folder vs naming the folder? For Each file As String In Dir("/home/g...
by GBowlsby
Saturday 24th April 2021 8:09pm
Forum: Beginners
Topic: Multi line text areas
Replies: 6
Views: 639

Re: Multi line text areas

Thank you. The &= works perfectly thank you. I really appreciate the help.
by GBowlsby
Saturday 24th April 2021 6:27pm
Forum: Beginners
Topic: Multi line text areas
Replies: 6
Views: 639

Multi line text areas

I am new to GAMBAS. I have VB.net experience. What I am trying to do is append text to my textarea. In VB.net I would use textbox.appendtext("Line" & vbcrlf) Below is where I am at and the issue is with the inputext replaces the information in the box and not appends the text. So what am I doing wro...