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

    Utilizzo non valido di Null: 'CInt'

    Mi restituisce l'errore del titolo:

    codice:
    if objrs("MaxUtente") = null then
       maxUtente = 0
       diffUtente = 999 + CInt(maxUtente) 
    else 
       maxUtente = objrs("MaxUtente")
       diffUtente = 999 + CInt(maxUtente) 
    end if
    Perchè? :master:

    P.S.bjrs("MaxUtente") è un campo numerico.
    Provare paura per un qualcosa che ti possa capitare nel futuro non ti evita quell'evento,ti fa soltanto vivere un presente sbagliato!

  2. #2
    codice:
    if isNull(objrs("MaxUtente")) then 
             maxUtente = 0
            diffUtente = 999 + CInt(maxUtente)
        else
            maxUtente = objrs("MaxUtente")
            diffUtente = 999 + CInt(maxUtente)
        end if
    prova questo

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.