El siguiente código con FWH marzo 2006 funciona ok, con la actual da el siguiente error
test.prg(7) Error E0030 Syntax error: "syntax error at 'DBCOMBO'"
- Code: Select all Expand view RUN
#include "FiveWin.Ch"
#include "dbCombo.ch"
FUNCTION main()
LOCAL oDlg,cDato:=''
DEFINE DIALOG oDlg RESOURCE "DLG"
REDEFINE DBCOMBO cDato ID 603 OF oDlg ITEMS {'1','2','3'} PROMPTS {'UNO','DOS','TES'}
ACTIVATE DIALOG oDlg
RETURN NIL
Fichero RC
- Code: Select all Expand view RUN
#include <windows.h>
LANGUAGE LANG_SPANISH,SUBLANG_SPANISH_MODERN
DLG DIALOGEX DISCARDABLE 6, 18, 297, 142
STYLE WS_POPUP|DS_MODALFRAME|DS_CONTEXTHELP|DS_3DLOOK|WS_CAPTION|WS_SYSMENU|WS_VISIBLE
CAPTION "Dialog"
FONT 8, "MS Sans Serif", 0, 0, 1
BEGIN
CONTROL "", 603, "ComboBox", WS_BORDER|CBS_DROPDOWNLIST|WS_VSCROLL|WS_TABSTOP, 77, 14, 60, 40
END
PPO con FWH antiguo
- Code: Select all Expand view RUN
...
FUNCTION main()
LOCAL oDlg,cDato:=""
oDlg = TDialog():New(,,,,,"DLG",,.F.,,,,,,.F.,,,,,,.F. )
TDBCombo():ReDefine(603,{ | u | If(PCount()==0,cDato,cDato:= u ) },{"1","2","3"},oDlg,,,,,,,.F.,,,,,,,{"UNO","DOS","TES"} )
oDlg:Activate(oDlg:bLClicked,oDlg:bMoved,oDlg:bPainted,.F.,,,,oDlg:bRClicked,,)
RETURN NIL
Con FWH 0804
- Code: Select all Expand view RUN
...
FUNCTION main()
LOCAL oDlg,cDato:=""
oDlg = TDialog():New(,,,,, "DLG",, .F.,,,,,, .F.,,,,,, .F. )
REDEFINE DBCOMBO cDato ID 603 OF oDlg ITEMS {"1","2","3"} PROMPTS {"UNO","DOS","TES"}
oDlg:Activate( oDlg:bLClicked, oDlg:bMoved, oDlg:bPainted, .F.,,,, oDlg:bRClicked,, )
RETURN NIL