Bonjour à Tous
Je suis bloquer sur ce problème tout fonctione très bien sauf après avoir fait effacer et quand je clic sur Tension 120 ou Tension 240 quand il n'as pas aucun nombre dans la texbox Watts et TexBox Volts il m'indique erreur the opération yail-divide cannot accept the arguments:"", 120
Instead of setting textboxes to empty strings set them to 0
Merci Dora mais ça fonctionne pas il marque un autre error 3200 quand je défini des 0 parce-que j'ai donné une valeur de 120 au bouton Tension 120 et quand je click sur le bouton Tension 120 V il me donne une valeur de 120 dans le textBox le TexBox divise les Watts par les Volts pour donné une valeur dans les Amps et Ohms Merci
FR: Vous essayez de diviser une chaîne vide par 120, ce qui n'a aucun sens.
EN: You are attempting to divide an empty string by 120, which doesn't make sense.
Hello Claude
This seems to have triggered the error:
Whenever an equation attempts to divide, you must first check that the number to be divided is a number, not a blank text, and the divisor is > 0.
For other equations, always check there is a number, not a blank text.
Two tips:
- This type of Topic should be in the Help Forum
- Use App Inventor's image of your Blocks so that we can see them clearly:
Right-mouse in the Blocks work area and select "Download Blocks as image"
Merci beaucoup Chris cela fonctionne très bien Merci encore