On mardi 16 septembre 2008, Arief Bayu Purwanto wrote: > ----------------- > ' Gambas module file > > DIM Sport AS NEW SerialPort > > Sport.Speed = "115200" > Sport.PortName = "/dev/ttyUSB0" > Sport.Parity = 0 > Sport.DataBits = "8" > Sport.StopBits = "1" > ' keep DTR on > Sport.FlowControl = 0 > Sport.Open() > > > PRINT Sport.DSR > PRINT Sport.DTR > PRINT Sport.CTS > PRINT Sport.RTS > PRINT Sport.DCD > PRINT Sport.RNG > --------------- > that's all. > > Nothing more. I just want to test open the SerialPort before move to actual > development. >
Try to put "USE gb.net" at the beginning of the script, to tell the scripter that the gb.net component is needed. Regards, -- Benoit Minisini ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Gambas-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/gambas-user
