Character Mode Cookbook: Difference between revisions

From DataFlex Wiki
Jump to navigationJump to search
no edit summary
mNo edit summary
No edit summary
Line 4: Line 4:
  local integer liNumber
  local integer liNumber
  move 0 To liNumber
  move 0 To liNumber
=Keys and commands=


  on_key KCLEAR                      : F5
  on_key KCLEAR                      : F5
Line 17: Line 19:
  dfruncon ex            with mouse support
  dfruncon ex            with mouse support


=Declaration=
==Move==
  Move (key+1) to key    key = key++ //Dont forget to use paratheses (a+(b*c))<>a+b*c
  Move (key+1) to key    key = key++ //Dont forget to use paratheses (a+(b*c))<>a+b*c


==Set/Get==
  Set value of (oPop(current_object)) item 0 to sVar      // item[0] = sVar
  Set value of (oPop(current_object)) item 0 to sVar      // item[0] = sVar
  Get Value item 0 to sVar                                // sVar    = item[0]
  Get Value item 0 to sVar                                // sVar    = item[0]


==Be aware of the difference==
Set A of object to B  A=B
Get A of object to B  B=A
Move A to B


Set A to B  A=B
=Functions and Procedures=
Get A to B  B=A
 
  get myFunc of (oObj(current_object)) "tmp" to sAnswer // sAnswer = oObj->myFunc("tmp")
  get myFunc of (oObj(current_object)) "tmp" to sAnswer // sAnswer = oObj->myFunc("tmp")
  --------------
  --------------
Line 62: Line 69:


  get myFunc of (oObj(current_object)) "tmp string" to sAnswer
  get myFunc of (oObj(current_object)) "tmp string" to sAnswer
--------------
 
=Start "windows/console"=
  start_ui      // starts a new console
  start_ui      // starts a new console
  ui_accept      // has a return value
  ui_accept      // has a return value
  activate_scope // opens a new "window"
  activate_scope // opens a new "window"


=Content layout=
  --------------
  --------------
  /Answer.hdr
  /Answer.hdr
Line 98: Line 107:
  --------------
  --------------


=Reports=
  /oReportView1.SectionName
  /oReportView1.SectionName
     __________________________________________________________________________
     __________________________________________________________________________
Line 157: Line 167:
  ---------------------------------------------------------------
  ---------------------------------------------------------------


=Objects=
  Object oOrder is a Entry_View_Client oOrder.hdr
  Object oOrder is a Entry_View_Client oOrder.hdr
     Set location 5 8 ABSOLUTE  
     Set location 5 8 ABSOLUTE  
Anonymous user

Navigation menu