[Gambas-user] How to send data to SerialPort from Module?

nando_f at ...951... nando_f at ...951...
Wed Jan 4 05:23:39 CET 2017


One way is to make a function is Fmain which is public called (for example)

public Function Print_Sport(s as String)  'this is in Fmain
  print #sport, s, len(s)
end function

Outside fmain, you can call Fmail.Print_Sport(Chr$(&H1B) & Chr$(&H61))
because it is visible

-Fernando



--
Open WebMail Project (http://openwebmail.org)


---------- Original Message -----------
From: abbat81 <abbat.81 at ...787...>
To: gambas-user at lists.sourceforge.net
Sent: Tue, 3 Jan 2017 07:07:04 -0700 (MST)
Subject: [Gambas-user] How to send data to SerialPort from Module?

> Hi all,
> 
> on a form I have a Serial Port.
> If I can send a daa to SerialPort from Fmain:
> Print #Sport, Chr$(&H1B); Chr$(&H61); Chr$(2);
> how can I do it from Module?
> 
> --
> View this message in context: http://gambas.8142.n7.nabble.com/How-to-send-data-
> to-SerialPort-from-Module-tp58114.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 at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
------- End of Original Message -------





More information about the User mailing list