#include 'fivewin.ch'
#include 'xbrowse.ch'
function Main()
SET DATE ITALIAN
SET CENTURY ON
SET TIME FORMAT TO 'HH:MM:SS'
xbrowser {{ {^ 2009/10/10}, {^ 2009/10/10 15:15:15} }}
return nil
James Bott wrote:Rao,
I have never seen this caret syntax.
{^ 2009/10/10}
Does this automatically convert the value to a date format?
James
Hmm, only for statics, not locals?
If we use the syntax, XBROWSE .... COLUMNS 'col1', 'col2' ... ALIAS <calias> or OBJECT <dataobj>,
TimStone wrote:When running your test function, it returns .t.
Tim
James Bott wrote:Rao,If we use the syntax, XBROWSE .... COLUMNS 'col1', 'col2' ... ALIAS <calias> or OBJECT <dataobj>,
Can you explain in more detail about using the OBJECT clause, perhaps by providing an example. I am particularly wondering about how you would specify only some fields--not all fields.
James
#include 'fivewin.ch'
#include 'ord.ch'
#include 'xbrowse.ch'
REQUEST DBFCDX
function Main()
local oDbf, oDlg, oBrw
SET DATE ITALIAN
SET CENTURY ON
SET TIME FORMAT TO 'HH:MM:SS'
RDDSetDefault( 'DBFCDX' )
oDbf := TDataBase():Open( , 'CUSTOMER' )
oDbf:SetOrder( 'FIRST' )
DEFINE DIALOG oDlg SIZE 550,400 PIXEL
@ 10,10 XBROWSE oBrw SIZE -10,-10 PIXEL OF oDlg ;
COLUMNS 'First', 'Married', 'HireDate', 'Salary', 'Age' ;
OBJECT oDbf ;
AUTOSORT CELL LINES NOBORDER
oBrw:Married:SetCheck()
oBrw:nStretchCol := 1
oBrw:CreateFromCode()
ACTIVATE DIALOG oDlg CENTERED
oDbf:Close()
return nil
#include 'fivewin.ch'
#include 'xbrowse.ch'
function Main()
local d
d := Date()
? HasTimePart( d ) // should return .f.
d := DateTime()
? HasTimePart( d ) // should return .t.
return nil
function HasTimePart( d )
return ( d - Int( d ) ) > 0
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: Marc Venken and 111 guests