Announcement

Collapse
No announcement yet.

global variable with if

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • global variable with if

    this is example, but not works for me with global varables


    if ([prezzo_cliente] > 0 )
    {
    sc_alert("Il cliente ha prezzo riservato");

    }

  • #2
    Try put ' '
    if ([prezzo_cliente] > '0' )
    {
    sc_alert("Il cliente ha prezzo riservato");

    }

    Comment


    • #3
      can you give more details , where do you put this code ? and with grid or form?

      Comment


      • #4
        And is it numeric or string?

        Comment


        • #5
          example if want use this with global var, i want use in form
          if ([prova] == '' ) { ......... } ;
          Last edited by andreaparisi; 03-14-2015, 09:50 AM.

          Comment


          • #6
            if ([test1master] == '' ) { sc_alert("test"); }

            {test1master} = [test1master];

            Comment


            • #7
              Thats all fine - what's the problem?

              Have you echoed the global var to see what's in it? Where is the value set - in that app or another? Is it defined correctly in the Application | Global Variables section?

              If you want help you need to give more detail as we are not psychic :-)

              Comment

              Working...
              X