Visualizzazione dei risultati da 1 a 2 su 2

Discussione: Controllo in FPDF

  1. #1

    Controllo in FPDF

    Ciao a tutti,

    vorrei fare un semplice controllo if nel mio file FPDF, ovvero vorrei far apparire un determinato commento se e solo se questo non è nullo.

    codice:
     CommentoCognome=Session("CommentoCognome")
     if (CommentoCognome) <> "" then
     pdf.SetFont("Arial","B",12);
     pdf.MultiCell(150,9,"Commento cognome: "+CommentoCognome);
     end if
    facendo così non mi riconosce il segno <> ...

    codice:
    Syntax error 
    
    if (CommentoCognome) <> "" then
    ---------------------^
    Dove sbaglio? Suggerimenti?

    Grazie
    You see beauty I see pain, You see sky and I see acid rain

  2. #2
    No-comment... è javascript.

    codice:
     CommentoCognome=Session("CommentoCognome")
     if(CommentoCognome!="") {
     pdf.SetFont("Arial","B",12);
     pdf.MultiCell(150,9,"Commento cognome: "+CommentoCognome);
     }

    You see beauty I see pain, You see sky and I see acid rain

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.