Search found 8 matches

by seany
Saturday 21st December 2019 2:13am
Forum: General
Topic: Reading file, line by line
Replies: 2
Views: 178

Reading file, line by line

Hi, Consider this snippet please: Dim hFile As Stream Dim sline As String Dim linecntr As Integer hFile = Open FMain.appDefPath & FMain.projectPath & projectName & "/dtls.txt" For Input ' this opens linecntr = 0 While Not Eof(hFile) Line Input #hFile, sline Print sline Print Chr(13) Print linecntr s...
by seany
Saturday 21st December 2019 2:09am
Forum: Web
Topic: ssh from gambas on linux
Replies: 5
Views: 795

Re: ssh from gambas on linux

I want to log in, and execute a script.
by seany
Sunday 08th December 2019 12:52am
Forum: General
Topic: Drawing on a map
Replies: 1
Views: 314

Re: Drawing on a map

Okey, I solved it by randomizing the key

Code: Select all

"c"
.

Having initiated the the key at the drawPoint function - given we are working with a pseudorandom - generate the same key every time.

Having generated the key at the loop where the drawPoint function is being called solves the issue.
by seany
Saturday 07th December 2019 11:23pm
Forum: General
Topic: Drawing on a map
Replies: 1
Views: 314

Drawing on a map

Hello I want to dynamically add points on a gb.map I have : Public Sub _New() MapView1.Map.AddTile("OpenStreet", "http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png") MapView1.Map.AddShape("P") End then, this function is called periodically : Public Sub drawPoint() Dim c As String c = Str(Rand(65, 90...
by seany
Saturday 07th December 2019 7:01pm
Forum: Web
Topic: ssh from gambas on linux
Replies: 5
Views: 795

ssh from gambas on linux

Hi
Its me again

I wish to ssh to a target server (say, a.b.c.d) from gambas.

I know i could use some "exec" trics, but does gambas provide a way to use ssh or curl or anything to quickly check the last few line on a file in an web server? thank you
by seany
Saturday 07th December 2019 6:50pm
Forum: General
Topic: Rich text editor
Replies: 7
Views: 647

Re: Rich text editor

Hi
Thank you
This happened after deselecting qt4 and selecting qt5:

Image

Thank you.
by seany
Saturday 07th December 2019 11:34am
Forum: General
Topic: Rich text editor
Replies: 7
Views: 647

Re: Rich text editor

Hello
this is failing with "component not found gb.qt4". I have enabled it in project properties:
Image

I am in qt5. So, I wonder what to do now?
by seany
Friday 06th December 2019 3:14pm
Forum: General
Topic: Rich text editor
Replies: 7
Views: 647

Rich text editor

Hi Does gambas 3.14.1 pi has any way to render Rich Text? I know that i can make it HTML and use a webview. But I want to have a text box with editable lines, where i can individually set the color/style of each character I am trying to use gb.qt5.ext.textedit. But I can't find any information on th...