Alliance HOP Index du Forum Alliance HOP
Les Homoursporcs : à mi-chemin entre l'homme, l'ours et le porc.
 
 FAQFAQ   RechercherRechercher   MembresMembres   GroupesGroupes   S’enregistrerS’enregistrer 
 ProfilProfil   Se connecter pour vérifier ses messages privésSe connecter pour vérifier ses messages privés   ConnexionConnexion 

Ошибка частотника

 
Poster un nouveau sujet   Répondre au sujet    Alliance HOP Index du Forum -> Le Hall -> La Taverne
Sujet précédent :: Sujet suivant  
Auteur Message
Deltaqiiryp
Invité

Hors ligne




MessagePosté le: Sam 7 Avr - 14:15 (2018)    Sujet du message: Ошибка частотника Répondre en citant

"hello, " ; streamWriter1.WriteLine "world" ; In addition to basic Strings, StreamWriter’s Write and WriteLine methods can write Chars, text representations of numeric and Boolean values, text representations of objects as defined an object’s ToString property, and strings formatted as defined by the String.Format property. 183 Chapter 9 Here are some examples: vb Dim dataToSend1 As Char = CChar "A" $treamWriter1.Writeline dataToSend1 Dim dataToSend2 As Int32 = 254 streamWriter1.WriteLine dataToSend2 Dim dataToSend3 As Decimal = 100 streamWriter1.WriteLine dataToSend3 Dim dataToSend4 As Boolean = True streamWriter1.WriteLine dataToSend4 Dim dataToSend5 As Byte = 57 streamWriter1.WriteLine dataToSend5.ToString streamWriter1.WriteLine " 0:t ", DateTime.Now vc# Char dataToSend1 = 'A'; streamWriter1.WriteLine dataToSend1 ; Int32 dataToSend2 = 254; streamWriter1.WriteLine dataToSend2 ; Decimal dataToSend3 = 100; streamWriter1.WriteLine dataToSend3 ; Boolean dataToSend4 = true; streamWriter1.WriteLine dataToSend4 ; Byte dataToSend5 = 57; streamWriter1.WriteLine dataToSend5.ToString ; streamWriter1.WriteLine " 0:t ", DateTime.Now ; The code above writes the following text to the stream and port: A 254 100 True 57 4:07 PM 184 Using .NET’s SerialPort Class The StreamReader class provides several methods for reading text from a SerialPort object. StreamReader’s Read method can read a single character into an Integer or one or more characters into a Char array. The method returns when at least one character has been received: vb 1 Read a character. Dim receivedDatal As Integer receivedDatal = streamReaderl.Read Console.WriteLine Chr receivedData1 1 Read two characters into an array. Dim receivedData2 1 As Char Dim count as Integer count = streamReader1.Read receivedData2, 0, 2 Console.WriteLine count & " characters received: " Console.WriteLine receivedData2 vc# // Read a character. int receivedData1; receivedData1 = streamReader1.Read ; Console.WriteLine Stri prom-electric.ru

Revenir en haut
Publicité






MessagePosté le: Sam 7 Avr - 14:15 (2018)    Sujet du message: Publicité

PublicitéSupprimer les publicités ?
Revenir en haut
Montrer les messages depuis:   
Poster un nouveau sujet   Répondre au sujet    Alliance HOP Index du Forum -> Le Hall -> La Taverne Toutes les heures sont au format GMT + 1 Heure
Page 1 sur 1

 
Sauter vers:  

Portail | Index | Creer un forum | Forum gratuit d’entraide | Annuaire des forums gratuits | Signaler une violation | Conditions générales d'utilisation
phpBB template "WarMoonclaw01" created by MOONCLAW/MAËVAH(EU-Sinstralis/EU-Illidan) (v1.05) - http://www.wowcr.net/templates
Powered by
phpBB © 2001, 2005 phpBB Group
Traduction par : phpBB-fr.com