Visualizzazione dei risultati da 1 a 2 su 2
  1. #1
    Utente di HTML.it
    Registrato dal
    Dec 2002
    Messaggi
    1,786

    errore if - else - end if

    Salve,

    ho questo codice:

    codice:
    	  If IntImgW => IntImgH Then
    	     If IntImgW > 240 Then
    		    
    			IntNewImgW = 240
    		    IntNewImgH = (IntNewImgW / IntImgW) * IntImgH
             
    		 End If
    	  Else
    	     If IntImgH > 240 Then
    		    IntNewImgH = 240
    		    IntNewImgW = (IntNewImgH / IntImgH) * IntImgW
    		 End If
    	  End If
    che genera questo errore:

    Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

    Compiler Error Message: BC30201: Expression expected.
    su questa riga:

    codice:
    If IntImgW => IntImgH Then
    come mai ?

    grazie !
    [Scambio Links a Tema] Contattatemi in Privato x + Info.

  2. #2
    Utente di HTML.it L'avatar di Legnetto
    Registrato dal
    May 2002
    Messaggi
    1,419
    Devi mettere nel confronto prima > poi =
    codice:
            If IntImgW >= IntImgH Then
                If IntImgW > 240 Then
                    IntNewImgW = 240
                    IntNewImgH = (IntNewImgW / IntImgW) * IntImgH
                End If
            Else
                If IntImgH > 240 Then
                    IntNewImgH = 240
                    IntNewImgW = (IntNewImgH / IntImgH) * IntImgW
                End If
            End If
    Ciao
    Legnettto

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 © 2026 vBulletin Solutions, Inc. All rights reserved.