Visualizzazione dei risultati da 1 a 4 su 4
  1. #1

    Problemuccio con una variabile

    Allora, mi interessa leggere una variabile da un txt, e fin qui va bene.
    Utilizzo i soliti comandi, in particolare

    totale=InStream.ReadLine
    totale=CInt(totale)



    Ora, se il txt non esiste esso viene creato vuoto. In quest'ultimo caso vorrei che fosse: miavariabile=0

    Come posso fare?
    Where there is a will, there is a way

  2. #2
    Utente di HTML.it L'avatar di diegoctn
    Registrato dal
    May 2001
    Messaggi
    2,118
    If Cint(miavariabile) is null then
    totale=0 else
    totale=Cint(miavariabile)

  3. #3
    Ho provato ma non funge... (nell'esempio sotto, stampa il txt sempre vuoto)



    totale=InStream.ReadLine
    totale=CInt(totale)



    IF totale is null THEN

    OutStream.WriteLine("okokok")

    END IF
    Where there is a will, there is a way

  4. #4
    help
    Where there is a will, there is a way

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.