[Gambas-user] Webforms samples?

2017-07-30 Thread alexchernoff
Peace to all!

Webforms seem to be awesome but there's no examples and documentation is
still quite poor. Controls on webforms do not go appear where they are
placed in the form, tab completion of events crashes the IDE(e.g. webbutton
_click event)...

Does anyone have a sample of a web app which uses sessions to manage session
data like a login, and a sample of how to format a webform with buttons and
labels and a few text input controls? 

thanks!






--
View this message in context: 
http://gambas.8142.n7.nabble.com/Webforms-samples-tp59969.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] Gambas in a tablet. Is it possible?

2017-07-12 Thread alexchernoff
There is a software called NSBasic that can build Android apps and is very
similar to VB/Gambas.

Not free but works fine. 





--
View this message in context: 
http://gambas.8142.n7.nabble.com/Re-Gambas-in-a-tablet-Is-it-possible-tp59715p59734.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] Best ways to format float values

2017-07-12 Thread alexchernoff
Peace to all,

this might a bit silly but what is the best way to format float values like
26.66016 into having two digits AND/OR  with rounding them?

e.g. 

26.66016 becomes 26.66 shortened
26.66016 becomes 26.67 rounded

cheers!





--
View this message in context: 
http://gambas.8142.n7.nabble.com/Best-ways-to-format-float-values-tp59733.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] Logging errors in apps running as Application.Daemon

2017-06-28 Thread alexchernoff
Peace, 

Can gbr3 be made to log fatal interpreter errors to file?

Thanks!




--
View this message in context: 
http://gambas.8142.n7.nabble.com/Logging-errors-in-apps-running-as-Application-Daemon-tp59450p59565.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] Logging errors in apps running as Application.Daemon

2017-06-23 Thread alexchernoff
Peace! 

Making apps daemons is exactly what I want to achieve, but couldn't get
interpreter errors to log to file in native daemon mode. So I thought maybe
a wrapper can start a non daemon app, intercept all output including
interpreter errors, and go into background? 

This is boot time start "service" apps.

Cheers 



--
View this message in context: 
http://gambas.8142.n7.nabble.com/Logging-errors-in-apps-running-as-Application-Daemon-tp59450p59519.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] Logging errors in apps running as Application.Daemon

2017-06-22 Thread alexchernoff
Anyone know if there is a wrapper to daemonize apps while keeping them in
regular console mode? That way maybe it will be possible to log fatal
interpreter errors?

Peace! 




--
View this message in context: 
http://gambas.8142.n7.nabble.com/Logging-errors-in-apps-running-as-Application-Daemon-tp59450p59515.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] Logging errors in apps running as Application.Daemon

2017-06-22 Thread alexchernoff
well, at least system.backtrace[1] (or error.backtrace[0] seem to show the
error line.

But it would be nice to get fatal interpreter errors written to a file.

cheers!





--
View this message in context: 
http://gambas.8142.n7.nabble.com/Logging-errors-in-apps-running-as-Application-Daemon-tp59450p59504.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] Logging errors in apps running as Application.Daemon

2017-06-22 Thread alexchernoff
Peace!

Well, Public Sub Application_Error() does fire upon a fatal error, but is it
possible to know what the last error was?

cheers!





--
View this message in context: 
http://gambas.8142.n7.nabble.com/Logging-errors-in-apps-running-as-Application-Daemon-tp59450p59502.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] Logging errors in apps running as Application.Daemon

2017-06-21 Thread alexchernoff
Peace to all,

I have some Gb projects that are in Application.Daemon mode. But sometimes
if process dies for whatever reason, I can't see what the last error was. I
have to run it in a console without daemonizing and wait for it to die and
show last reason (like "#13: Null object" or something).

Can this be logged to a file? So at least the last output the interpreter
spits out is logged...

Cheers!






--
View this message in context: 
http://gambas.8142.n7.nabble.com/Logging-errors-in-apps-running-as-Application-Daemon-tp59450.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] Building binaries with gba3 sometimes fails

2017-06-19 Thread alexchernoff
Okay, 

so if i run gbc3 on the project before gba3, it should compile it and then
archive it, right?

peace!





--
View this message in context: 
http://gambas.8142.n7.nabble.com/Building-binaries-with-gba3-sometimes-fails-tp59410p59414.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] Building binaries with gba3 sometimes fails

2017-06-19 Thread alexchernoff
sorry, I meant I compile using gba3. Or does it also not account for changes?

thanks!




--
View this message in context: 
http://gambas.8142.n7.nabble.com/Building-binaries-with-gba3-sometimes-fails-tp59410p59412.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] Building binaries with gba3 sometimes fails

2017-06-19 Thread alexchernoff
Dear all,

I come in peace. I have some shell scripts to batch compile a bunch of
Gambas 3 projects. Sometimes I notice the gbr3 builds an executable, but it
it does NOT include some latest and saved changes...

I have to open the project and run it in the IDE, close IDE, and gbr3 it
again for it to work.

Anybody know why?

thanks!




--
View this message in context: 
http://gambas.8142.n7.nabble.com/Building-binaries-with-gba3-sometimes-fails-tp59410.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] Sharing Code Between Projects

2017-06-09 Thread alexchernoff
Using a Library works well, thanks!

Is it possible to name it something other than .gambas? like
XYZ_Super_Library.lib? 





--
View this message in context: 
http://gambas.8142.n7.nabble.com/Sharing-Code-Between-Projects-tp59251p59292.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] Sharing Code Between Projects

2017-06-06 Thread alexchernoff
Correct, "import" only creates a local copy, and using a symlink results in a
read only code in the IDE. 

The goal is to edit shared centralised modules and having all projects see
the changes.

Thanks 



--
View this message in context: 
http://gambas.8142.n7.nabble.com/Sharing-Code-Between-Projects-tp59251p59261.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] Sharing Code Between Projects

2017-06-06 Thread alexchernoff
Dear All,

I have multiple projects sharing certain modules such as logging, config
routines... I created a symlink in each project's .src directory pointing to
the actual file (with relative path like ln -s
../../../../SHARED/Mod_Logging.module)

Gambas sees it, also recognizes it as a link (icon has an arrow) but it's
read only and no way to unlock. I tried all possible permissions and still
no luck.

Anyone know about this or maybe better way to share modules?

thanks!





--
View this message in context: 
http://gambas.8142.n7.nabble.com/Sharing-Code-Between-Projects-tp59251.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] Class startup?

2017-05-18 Thread alexchernoff
Good day all,

is there a way to have a routine execute in a class as soon as a new
instance of it is created? I have a Public Sub Main() but it doesn't seem to
run. 

I come to Gambas from Xojo and there classes have a Constructor() sub which
runs on init.

thanks!




--
View this message in context: 
http://gambas.8142.n7.nabble.com/Class-startup-tp59033.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] 16 bit value in hex with MSB and LSB?

2017-05-18 Thread alexchernoff
awesome!

Lsl() does not have a definition (F2) in Gambas UI it seems though, at least
not 3.9.2.

also too bad Gambas UI help does not have a Search function (or does it?)

thanks!




--
View this message in context: 
http://gambas.8142.n7.nabble.com/16-bit-value-in-hex-with-MSB-and-LSB-tp59029p59032.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] 16 bit value in hex with MSB and LSB?

2017-05-18 Thread alexchernoff
Good day all,

In a serial string I receive a 16 bit value split into MSB and LSB in hex,
for example 15000 (3A 98) is sent as 2 bytes containing decimal values  of
3A and 98.

To convert that to decimal, I have to convert each to hex strings, join
them, add  to it and then convert "" to decimal. 

Maybe there is an easier way? 

Thanks! 





--
View this message in context: 
http://gambas.8142.n7.nabble.com/16-bit-value-in-hex-with-MSB-and-LSB-tp59029.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] Serial I/O with byte data

2017-05-16 Thread alexchernoff
it works fine - it was a strange serial port hardware issue. All the "Read"
methods suggested above work, Thanks to all!




--
View this message in context: 
http://gambas.8142.n7.nabble.com/Serial-I-O-with-byte-data-tp58933p58995.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] Serial I/O with byte data

2017-05-15 Thread alexchernoff
Hmm eureka, it's 02 53 = 0x53
Or 02 25 = 0x25...

Where could that 02 be from?

Cheers!



--
View this message in context: 
http://gambas.8142.n7.nabble.com/Serial-I-O-with-byte-data-tp58933p58986.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] Serial I/O with byte data

2017-05-15 Thread alexchernoff
Thanks, it works (both with .tostring and reading one by one... 

But I get values I don't know how to convert, e.g. where I expect a decimal
83 or hex 53 I get byte value of 253 ... Or instead of Decimal 15 I get 225
:(

cheers!



--
View this message in context: 
http://gambas.8142.n7.nabble.com/Serial-I-O-with-byte-data-tp58933p58984.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] Serial I/O with byte data

2017-05-14 Thread alexchernoff
Good day all, 

Anyone know how to read data received on serial port into an array of bytes
instead of string?  String gets unreadable binary characters, so how can I 
put them into byte[] or so? 

Thanks! 



--
View this message in context: 
http://gambas.8142.n7.nabble.com/Serial-I-O-with-byte-data-tp58933p58977.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] Serial I/O with byte data

2017-05-08 Thread alexchernoff
Thanks Mike,

what I have is pretty much the same, it's this line that causes everything
to stop. 

*Read #Sport, Rx, Lof(Sport) *

A very similar program written in Xojo on the same system using same serial
port works just fine. In Gambas, things just stop executing as soon as I do
a Read on that port...



--
View this message in context: 
http://gambas.8142.n7.nabble.com/Serial-I-O-with-byte-data-tp58933p58939.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] Serial I/O with byte data

2017-05-08 Thread alexchernoff
Dear all,

I am receiving data over a serial port which is sent by a byte[].write
function (an array of bytes)

I get the SerialPort1_read() event raised where I try to read data, RxBuffer
is a string var

*Try Read #SerialPort1, RxBuffer, Lof(SerialPort1)*

as soon as I do, the whole program stops, some other timers in other modules
also stop to fire. In fact when running the program in Gambas again, it does
not execute even the startup, so have to restart the IDE. 

what am I doing wrong?

thanks!




--
View this message in context: 
http://gambas.8142.n7.nabble.com/Serial-I-O-with-byte-data-tp58933.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] Gambas binary to ELF?

2017-05-05 Thread alexchernoff
Well thanks Tobias, that's a great idea. 

The "AXprotector" ELF protector encrypts the executable so it should be
safe. 

Any suggestions how to build such a self-extractor ELF? 

thanks!




--
View this message in context: 
http://gambas.8142.n7.nabble.com/Gambas-binary-to-ELF-tp58891p58907.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] Gambas binary to ELF?

2017-05-04 Thread alexchernoff
Good day all,

anyone know of a way to make an ELF format file from Gambas executable?

I try a "software protection" system (WIBU KEY), to protect a Gambas project
from unwanted copying, but it can only protect ELF binaries and doesn't
recognize a Gambas executable.

Cheers!





--
View this message in context: 
http://gambas.8142.n7.nabble.com/Gambas-binary-to-ELF-tp58891.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] GUI Tab Auto-Complete Issue

2017-04-26 Thread alexchernoff
Dear all,

has anyone noticed? in Gambas UI once you use Tab to suggest and
autocomplete a word, it becomes not possible to select any lines or move
cursor with the mouse. Only arrow keys work, and only solution is to press
Enter on some new line or switch to a different editor tab and come back. 

Is it a bug/feature...?

Cheers!




--
View this message in context: 
http://gambas.8142.n7.nabble.com/GUI-Tab-Auto-Complete-Issue-tp58807.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] Get name of the calling function?

2016-10-31 Thread alexchernoff
System.Backtrace[1] did it, thanks ub2@ !!!





--
View this message in context: 
http://gambas.8142.n7.nabble.com/Get-name-of-the-calling-function-tp57684p57691.html
Sent from the gambas-user mailing list archive at Nabble.com.

--
The Command Line: Reinvented for Modern Developers
Did the resurgence of CLI tooling catch you by surprise?
Reconnect with the command line and become more productive. 
Learn the new .NET and ASP.NET CLI. Get your free copy!
http://sdm.link/telerik
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Get name of the calling function?

2016-10-31 Thread alexchernoff
Hello Gambas users,

anyone have any idea how to get the name of the calling function and pass it
to logger or complexlogger ?

The $(callLocation)] format option shows "[ComplexLogger.Log.60] ", but not
where the log was called from.

Would be very useful to know which function the log was called from instead
of manually adding its name to each log line.

Cheers 



--
View this message in context: 
http://gambas.8142.n7.nabble.com/Get-name-of-the-calling-function-tp57684.html
Sent from the gambas-user mailing list archive at Nabble.com.

--
The Command Line: Reinvented for Modern Developers
Did the resurgence of CLI tooling catch you by surprise?
Reconnect with the command line and become more productive. 
Learn the new .NET and ASP.NET CLI. Get your free copy!
http://sdm.link/telerik
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user