Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
1316 connectés 

  FORUM HardWare.fr
  Programmation
  VB/VBA/VBS

  Convertir SHARP en VB

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

Convertir SHARP en VB

n°1981220
jboss38
-_-"
Posté le 06-04-2010 à 14:11:45  profilanswer
 

Bonjour,
 
J'aimerais convertir ceci;
 
En VB
 
// Parses the xmlResponse from status.xml and updates the status box
function updateStatus(xmlData) {
 // Check if a timeout occurred
 if(!xmlData)
 {
  document.getElementById('display').style.display = 'none';
  document.getElementById('loading').style.display = 'inline';
  return;
 }
 
 // Make sure we're displaying the status display
 document.getElementById('loading').style.display = 'none';
 document.getElementById('display').style.display = 'inline';
 
 // Loop over all the LEDs
 for(i = 0; i < 8; i++) {
  if(getXMLValue(xmlData, 'led'+i) == '1')
   document.getElementById('led' + i).style.color = '#090';
  else
   document.getElementById('led' + i).style.color = '#ddd';
 }
 
 // Loop over all the buttons
 for(i = 0; i < 4; i++) {
  if(getXMLValue(xmlData, 'btn'+i) == 'up')
   document.getElementById('btn' + i).innerHTML = '0';
  else
   document.getElementById('btn' + i).innerHTML = '1';
 }
 
 // Update analog value
 document.getElementById('an1').innerHTML = getXMLValue(xmlData, 'an1');
   
 document.getElementById('an2').innerHTML = getXMLValue(xmlData, 'an2');
 
 // Update the time value
 document.getElementById('time0').innerHTML = getXMLValue(xmlData, 'time0');
}
setTimeout("newAJAXCommand('status.xml', updateStatus, true)",500);
 
 
MERCI !
 
Ps; je possède le status.xml.


---------------
il n'y ya pas d'arnaque sans pigeon =)
mood
Publicité
Posté le 06-04-2010 à 14:11:45  profilanswer
 


Aller à :
Ajouter une réponse
  FORUM HardWare.fr
  Programmation
  VB/VBA/VBS

  Convertir SHARP en VB

 

Sujets relatifs
Convertir VB en HTML ?!Vb 2008 et modèle MVC
[WSDL / VB] Pb d'authentificationConvertir inline CSS en règles ? Converts inline style into CSS rules
Convertir des formules Excel dans un langage algorithmiqueLire un fichier excel depuis VB.NET
[VB.NET] Projet Informatique PTI BTS[ACCESS] Convertir un nombre au format HH:MM
Comparaison VB 6.0 / C# 
Plus de sujets relatifs à : Convertir SHARP en VB


Copyright © 1997-2022 Hardware.fr SARL (Signaler un contenu illicite / Données personnelles) / Groupe LDLC / Shop HFR