Hi All,
Is there a way to store ALL memory var's to a text file?
I've tried SAVE TO but it does not give me ALL var's.
Thanks,
Jeff
[VARIABLES]
cTextValue="This is the text value"
nNumberValue=123456
// Sample showing how to use INI files with FiveWin
#include "FiveWin.ch"
//----------------------------------------------------------------------------//
function Main()
local oWnd, oIni, oBar
local cTitle, cMsg, cLogo
local nRow := 3, nCol := 5, nWidth := 50, nHeight := 50
local cBtn1 := "", cBtn2 := ""
INI oIni FILE ".\MyApp.ini"
GET cTitle SECTION "main" ENTRY "Title" OF oIni DEFAULT "FiveWin App"
GET cMsg SECTION "main" ENTRY "Message" OF oIni DEFAULT "Main message"
GET cLogo SECTION "Logo" ENTRY "File" OF oIni
GET nRow SECTION "Logo" ENTRY "Row" OF oIni
GET nCol SECTION "Logo" ENTRY "Col" OF oIni
GET nWidth SECTION "Logo" ENTRY "Width" OF oIni
GET nHeight SECTION "Logo" ENTRY "Height" OF oIni
GET cBtn1 SECTION "ButtonBar" ENTRY "Button1" OF oIni
GET cBtn2 SECTION "ButtonBar" ENTRY "Button2" OF oIni
ENDINI
DEFINE WINDOW oWnd FROM 1, 5 TO 20, 60 ;
TITLE cTitle
DEFINE BUTTONBAR oBar OF oWnd
if ! Empty( cBtn1 )
DEFINE BUTTON OF oBar FILE cBtn1
endif
if ! Empty( cBtn2 )
DEFINE BUTTON OF oBar FILE cBtn2
endif
SET MESSAGE OF oWnd TO cMsg
@ nRow, nCol BITMAP FILE cLogo SIZE nWidth, nHeight OF oWnd
ACTIVATE WINDOW oWnd
return nil
//----------------------------------------------------------------------------//
Jeff Barnes wrote:I found functions in the manual called:
LogStatics() and Scan()
It looks like these might help me do what I want but I can not get either of them to work.
Jeff
#include "Fivewin.ch"
STATIC TEST1 := "This is a test 1"
STATIC TEST2 := "This is a test 2"
STATIC TEST3 := "This is a test 3"
FUNCTION MAIN()
LOCAL i
? NSTATICS(), HB_DBG_VMVARSLEN()
FOR i = 1 TO 3
? HB_DBG_VMVARSGET( i )
NEXT
RETURN NIL
#include "Fivewin.ch"
STATIC TEST1 := "This is a test 1"
STATIC TEST2 := "This is a test 2"
STATIC TEST3 := "This is a test 3"
FUNCTION MAIN()
LOCAL aStatics := __VMVARSLIST()
LOCAL i
? NSTATICS(), __VMVARSLEN(), LEN( aStatics )
FOR i = 1 TO 3
? __VMVARSGET( i ), aStatics[ i ]
NEXT
RETURN NIL
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: No registered users and 23 guests