I want to use browse for view and edit data inline. But I have a problem - I can't open my dbf in exclusive mode, so I need to lock one record - how to do it?
With regards, Marek
PS. I found, that it works good in example hmg\samples\browse_1\browse7.prg
but, how to declare this using IDE??@ 10,10 BROWSE Browse_1 ;
WIDTH 610 ;
HEIGHT 390 ;
HEADERS { 'Code' , 'First Name' , 'Last Name', 'Birth Date', 'Married' , 'Biography' } ;
WIDTHS { 150 , 150 , 150 , 150 , 150 , 150 } ;
WORKAREA Test ;
FIELDS { 'Test->Code' , 'Test->First' , 'Test->Last' , 'Test->Birth' , 'Test->Married' , 'Test->Bio' } ;
VALUE 0 ;
EDIT INPLACE APPEND ;
WHEN { { || Test->Code == 10 } , , { || Test->Last = 'Last Name 10' } , , , } ;
VALID { { || MemVar.Test.Code <= 1000 } , { || !Empty(MemVar.Test.First) } , { || !Empty(MemVar.Test.Last) } , { || Year(MemVar.Test.Birth) >= 1900 } , , } ;
VALIDMESSAGES { 'Code Range: 0-1000', 'First Name Cannot Be Empty', , , , } ;
LOCK ;
NOLINES
I want to add, that if I edit my *.FMG file manually and add phrase EDIT INPLACE
It causes runtime error...