[4GL/ABL] Experiment: variable & widget

I made this code:

---------------

/* TRIGGER */
DO:
  /* Tentativo da oggetto a variabile */
  ASSIGN fill-in-1 = INPUT fill-in-1.
  DISPLAY "1] " + fill-in-1 @ fill-in-1 WITH FRAME fMain.
  
  /* Tentativo attributo dell'oggetto */
  ASSIGN fill-in-2:SCREEN-VALUE = "2] " + fill-in-1.
  
  /* extension version of assign? */
  ASSIGN toggle-1 = INPUT toggle-1.
  /* compact version of assign? */
  ASSIGN toggle-2.
  
  /*
  ESEMPIO in C
  i = i + 1.
  i++.
  ++i.
  */
  
  IF toggle-1 THEN DO:
                MESSAGE "toggle1".
                ASSIGN toggle-1:LABEL = "maschio".
              END.
              
  IF toggle-2 THEN ASSIGN toggle-2:LABEL = "femmina".
END.

---------------

other trigger develop with ApplicationBuilder in the only file:

---------------

/* TRIGGER */
DO:
  ASSIGN toggle-1.
  
  IF toggle-1 THEN
        toggle-1:LABEL = "TRUE".
  ELSE
        toggle-1:LABEL = "FALSE".
  
END.

---------------

, where i try to manipolate entity "variable" & entity "widget".

... and i observe that ther's "different style" to manage the information.

---------------

  /* extension version of assign? */
  ASSIGN toggle-1 = INPUT toggle-1.
  /* compact version of assign? */
  ASSIGN toggle-2.

---------------

Anyone would underline the difference?
I'm newbee of this language and i'm in confuse... o_O

TNX!


Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Matrixbob's picture

Little OT, but why i see

Little OT, but why i see this message on the forum?msg: msgmsg: msg

[IMG]http://img58.imageshack.us/img58/5435/bohxs1.png[/IMG]


john's picture

Re: Little OT, but why i see

This error message has been around since the last big Drupal upgrade we did. The forums seem to be working fine, but the error message is certainly annoying. We're not sure which of the Drupal plug-in modules causes it, but we'll look for a fix as soon as we can track it down.


Found a fix

Found a fix (http://drupal.org/node/206064) and installed it :-)