diff --git a/harbour/tests/working/testread.prg b/harbour/tests/working/testread.prg new file mode 100644 index 0000000000..fa3822cb0a --- /dev/null +++ b/harbour/tests/working/testread.prg @@ -0,0 +1,32 @@ +// Harbour Get System sample + +#define bSETGET(x) { | u | If( PCount()==0, x, x:= u ) } + +#command @ , GET ; + [PICTURE ] ; + [VALID ] ; + [WHEN ] ; + [SEND ] ; + ; + => SetPos( , ) ; + ; AAdd( ; + GetList, ; + _GET_( , <"var">, , <{valid}>, <{when}>, bSETGET() ):display(); + ) ; + [; ATail(GetList):] + +function Main() + + local cName := "Harbour " + local cWish := "Power " + local GetList := {} + + @ 2, 2 SAY "Enter your name:" GET cName + @ 4, 2 SAY "Enter your wish:" GET cWish + READ + + ? cName + ? cWish + +return nil +