>Fantastic!! thanks Naoto
>i don't know where you found that gem.
>k
>>>using browse field1,field2,field3,field4
>>>
>>>is therea way to allow edit for field1 and field2 and disallow edit for field3 and field4
>>>
>>>tnx
>>>k
>>
>>Have you tried something like the following?
>>
>>BROWSE FIELDS field1,field2,field3:R,field4:R
Should be in the HELP file for the BROWSE command.
Opens the Browse window and displays records from the current or selected table.
BROWSE
[FIELDS FieldList] [FONT cFontName [, nFontSize [, nFontCharSet]]]
[STYLE cFontStyle] [FOR lExpression1 [REST]] [FORMAT]
[FREEZE FieldName] [KEY eExpression1 [, eExpression2]] [LAST | NOINIT]
[LOCK nNumberOfFields] [LPARTITION] [NAME ObjectName] [NOAPPEND]
[NOCAPTIONS] [NODELETE] [NOEDIT | NOMODIFY] [NOLGRID] [NORGRID]
[NOLINK] [NOMENU] [NOOPTIMIZE] [NOREFRESH] [NORMAL] [NOWAIT]
[PARTITION nColumnNumber [LEDIT] [REDIT]]
[PREFERENCE PreferenceName] [SAVE] [TIMEOUT nSeconds]
[TITLE cTitleText] [VALID [:F] lExpression2 [ERROR cMessageText]]
[WHEN lExpression3] [WIDTH nFieldWidth] [WINDOW WindowName1]
[IN [WINDOW] WindowName2 | IN SCREEN] [COLOR SCHEME nSchemeNumber]
And close to be bottom:
The FIELDS clause field list includes options that enable special handling of fields displayed in a Browse window:
:R
Specifies that the field is read-only. The data it contains can be viewed but not edited.
In the following example, a Browse window is opened with the cust_id and company fields. The cust_id field is read-only and cannot be changed
If it's not broken, fix it until it is.
My Blog