Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Control is Read Only
Message
From
17/01/2002 12:56:22
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
17/01/2002 12:33:09
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00606201
Message ID:
00606219
Views:
19
>Hi all.
>
>I have a form (SHOWFORMS) onto which I have placed in grid. When I try to edit one of the fields in the grid I am getting a "Control is Read Only" message in the status area. In this appliction, I only want the second column to be editable. In the debugger I checked the READONLY property of the Form, Grid, Grid.Column2, Grid.Column2.Text1 objects and couldn't find any that are set to .T. Could someone please point me to another area I could check?
>
>If this helps, here is the code used to call and then bring up the form.
>
>In a command button on a different form
>
DO FORM showforms WITH printqueue.pqid
>
>Showforms.Load
>
USE (Trim(print_properties.data_path)+"frfrmque") AGAIN ALIAS showforms IN 0
>
>Showforms.Init
>
>LPARAMETERS tcQueId
>WITH This
>	.QueId=IIF(EMPTY(tcQueID),"  1",tcQueId)
>	.Caption = "Items to Print for Job " + TRANSFORM(.QueId)
>	
>	.CurWa = SELECT()
>	SELECT showforms
>	SET FILTER TO pqid = Thisform.QueID
>	
>	WITH .grdForms
>		.recordsource="showforms"
>		.readonly = .F.
>		.columns(1).ControlSource = "fqid"
>		.columns(2).ControlSource = "fqrectype"
>		.columns(1).text1.readonly = .F.
>		.columns(2).text1.readonly = .F.
>		.columns(3).ControlSource = "fqoutput"
>		.columns(4).ControlSource = "fqparam"
>		.columns(1).Width = 35
>		.columns(2).Width = 30
>		.columns(3).Width = 125
>		.columns(4).Width = 75
>		.columns(1).Header1.Caption = "Doc #"
>		.columns(2).Header1.Caption = "Type"
>		.columns(3).Header1.Caption = "Name"
>		.columns(4).Header1.Caption = "Comment"
>	ENDWITH
>ENDWITH
>
>
>Any and all help will be greatly appreciated.........Rich

Rich,
First check if 'showforms' itself is readonly or not (a cursor, RO file etc). Open data session, select it in the target datasession and browse to modify.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform