- Code: Select all Expand view
#include "fivewin.ch"
#include "Dsay.ch"
Function Test()
Local oWnd
Local oAnimation
lOCAL aItems
DEFINE FONT oFontanimation NAME "MS Sans Serif" SIZE 0,-36 BOLD
DEFINE WINDOW oWnd
@ 10, 2 DYNAMIC SAY oAnimation ;
FONT oFontanimation ;
SIZE 700,100 PIXEL CENTERED COLOR CLR_GRAY, CLR_WHITE ;
VERTICAL SCROLL SPEED 50 WRAP OF oWnd
USE MESSAGGI ALIAS MESSAGGI
MESSAGGI->(dbgotop())
DO WHILE !Messaggi->(eof())
// aadd(aItems,("New message from "+STR(Messaggi->FROM)+" TO "+STR(Messaggi->TO)))
oAnimation:SetText("New message from "+STR(Messaggi->FROM)+" TO "+STR(Messaggi->TO) )
MESSAGGI->(dbskip())
ENDDO
ACTIVATE WINDOW oWnd
RETURN NIL
But when I compile and execute this let me say settext error method why ?