Files
harbour-core/harbour/tests/aliasrt.prg
Viktor Szakats 31a85b650e 2013-02-28 17:19 UTC+0100 Viktor Szakats (harbour syenar.net)
* utils/hbmk2/hbmk2.*.po
  * utils/hbmk2/hbmk2.prg
    % minor optimization to recent patch
    + cleanups in some help items
    + '-?' and '-h' options are now accepted as '-help'
    + '-??' and '-hh' options are now accepted as '-longhelp'
    - deleted '-license' option, it's now part of '-longhelp'
    ! hbshell_gtSelect() parameter fixed to be case insentitive
      in an internal check

  + tests/clipper.ch
    + added header file that translates certain Harbour
      specific functions to ones understood by Clipper.
      Useful to compile lightly Harbour specific code
      in Clipper (or other Clipper compatible language),
      for comparison.

  * tests/*.prg
  - tests/exthrb.prg
  + tests/hrbext.prg
  * website/samples/*.prg.html
    ! various cleanups, minor fixes, formatting
    + #included "clipper.ch" to enable running what's
      possible to run with Clipper

  * src/rtl/gtwin/gtwin.c
  * src/rtl/gtwvt/gtwvt.c
    ! return string type for hb_gtInfo( HB_GTI_FONTSEL )
      in sync with GTXWC

  * contrib/xhb/xhbfunc.c
  * include/hbdefs.h
    * HB_FUNC_EXEC() macro value to not end with ';',
      now it should be added on usage (almost all usages
      were such already). To be code formatter friendly.

  * contrib/xhb/xhb.hbp
  + contrib/xhb/xhbdepr.prg
    + added compatiblity stubs for functions deprecated from
      Harbour core, but still available in xHarbour. (xHarbour
      has yet to deprecate anything)
      So here we can gather stuff that's deprecated from Harbour
      core (except internal functions - most of them named '__*' -,
      and the "evil" ones)
    ; NOTE: Runtime efficiency is not a goal with these stubs,
            only "cheap" long term maintainability.

  - contrib/hbblat/tests/blattest.prg
  + contrib/hbblat/tests/test.prg
  * extras/guestbk/guestbk.hbp
  - extras/guestbk/testcgi.prg
  + extras/guestbk/cgi.prg
    * renames

  * src/vm/dynsym.c
  * contrib/hbfbird/tests/testapi.c
  * contrib/xhb/thtm.prg
    * minor
2013-02-28 16:25:51 +00:00

102 lines
2.2 KiB
Plaintext

/*
* $Id$
*/
PROCEDURE Main()
USE test
REPLACE Age WITH 1
? FIELD->Age
REPLACE 1->Age WITH 2
? FIELD->Age
// REPLACE 1.5->Age WITH 3 // RTE: "Invalid alias expression"
// ? FIELD->Age
REPLACE TEST->Age WITH 4
? FIELD->Age
TEST->Age := 5
? FIELD->Age
TEST->( FieldPut( FieldPos( "AGE" ), 6 ) )
? FIELD->Age
dbCloseArea()
SELECT 2
USE test
// ? ( "0" )->FIRST // RTE
? ( "B" )->FIRST
? ( "2" )->FIRST
? 2->FIRST
? B->FIRST
Inkey( 0 )
// ? ( "0" )->FIRST // RTE
? Select()
? Select( 1 )
? Select( 2 )
? "0", Select( "0" )
? "1", Select( "1" )
? "2", Select( "2" )
? "A", Select( "A" )
? "B", Select( "B" )
? "C", Select( "C" )
? "D", Select( "D" )
? "E", Select( "E" )
? "F", Select( "F" )
? "G", Select( "G" )
? "H", Select( "H" )
? "I", Select( "I" )
? "J", Select( "J" )
? "K", Select( "K" )
? "L", Select( "L" )
? "M", Select( "M" )
? "N", Select( "N" )
? "O", Select( "O" )
? "P", Select( "P" )
? "Q", Select( "Q" )
? "R", Select( "R" )
? "S", Select( "S" )
? "T", Select( "T" )
? "U", Select( "U" )
? "V", Select( "V" )
? "W", Select( "W" )
? "X", Select( "X" )
? "Y", Select( "Y" )
? "Z", Select( "Z" )
Inkey( 0 )
? "" , dbSelectArea() , Select()
? "" , dbSelectArea( NIL ), Select()
// ? "" , dbSelectArea( "" ) , Select() // RTE
// ? " " , dbSelectArea( " " ), Select() // RTE
? "0" , dbSelectArea( "0" ), Select()
? "1" , dbSelectArea( "1" ), Select()
? "2" , dbSelectArea( "2" ), Select()
? "A" , dbSelectArea( "A" ), Select()
? "B" , dbSelectArea( "B" ), Select()
? "C" , dbSelectArea( "C" ), Select()
? "D" , dbSelectArea( "D" ), Select()
? "E" , dbSelectArea( "E" ), Select()
? "F" , dbSelectArea( "F" ), Select()
? "G" , dbSelectArea( "G" ), Select()
? "H" , dbSelectArea( "H" ), Select()
? "I" , dbSelectArea( "I" ), Select()
? "J" , dbSelectArea( "J" ), Select()
? "K" , dbSelectArea( "K" ), Select()
// ? "L" , dbSelectArea( "L" ), Select() // RTE
? "M" , dbSelectArea( "M" ), Select()
// ? "Z" , dbSelectArea( "Z" ), Select() // RTE
// ? "AA", dbSelectArea( "AA" ), Select() // RTE
RETURN