Visualizzazione dei risultati da 1 a 5 su 5

Discussione: settare campo numerico

  1. #1
    Utente di HTML.it
    Registrato dal
    Oct 2001
    Messaggi
    312

    settare campo numerico

    ciao a tutti, prelevo un dato da un campo numerico dal database,

    es. 224700000

    devo farlo visualizzare in questo modo:

    224,70

    qual'è la funzione che mi permette di fare ciò??

  2. #2
    Utente di HTML.it L'avatar di Corwin
    Registrato dal
    Jan 2002
    Messaggi
    584
    formatnumber((Numero /1000000),2)
    I don't wanna have to shout it out / I don't want my hair to fall out
    I don't wanna be filled with doubt / I don't wanna be a good boy scout
    I don't wanna have to learn to count / I don't wanna have the biggest amount
    I don't wanna grow up

  3. #3
    Utente di HTML.it
    Registrato dal
    Oct 2001
    Messaggi
    312
    prezzo = FormatNumber((rs1("prezzo") /1000000),2)


    mi dice "tipo non corrispondente"

  4. #4
    codice:
    prezzo = FormatNumber(CLng(rs1("prezzo")) /1000000),2)
    prova così
    Purtroppo bisogna imparare che il computer non sbaglia...fa solo quello che gli dici di fare

    www.netpolaris.it

  5. #5
    Utente di HTML.it L'avatar di Corwin
    Registrato dal
    Jan 2002
    Messaggi
    584
    Sicuro che il campo sia numerico e non sia vuoto ?
    I don't wanna have to shout it out / I don't want my hair to fall out
    I don't wanna be filled with doubt / I don't wanna be a good boy scout
    I don't wanna have to learn to count / I don't wanna have the biggest amount
    I don't wanna grow up

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.