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

    Nuovo Problema con FOR-NEXT

    Così funziona:


    FOR xxx = 1 TO 5

    IF xxx=4 THEN
    Response.Write("OK!")
    END IF

    NEXT



    Così invece NO:



    variabiledaflash = (Request("variabiledaflash"))

    FOR xxx = 1 TO 5

    IF xxx=variabiledaflash THEN
    Response.Write("OK!")
    END IF

    NEXT




    Sapete dirmi perchè?
    Where there is a will, there is a way

  2. #2
    Moderatore di ASP e MS Server L'avatar di Roby_72
    Registrato dal
    Aug 2001
    Messaggi
    19,559
    codice:
    IF xxx=CInt(variabiledaflash) THEN 
    Response.Write("OK!") 
    END IF

    Roby

  3. #3
    Perfetto! GRAZ IE!!

    Un'ultima cosa: c'è un comando per uscire dal FOR-NEXT ? (tipo l'EXIT FOR di Visual Basic)
    Where there is a will, there is a way

  4. #4

  5. #5
    eh eh eh
    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.