DataGrid Problem

Pete pete at mollysrevenge.com
Wed Dec 21 13:22:58 EST 2011


Ah yes, sorry I'm not very familiar with using datagrid forms.  The lesson
after the one I pointed you to is titled "How Can The User Edit Field
Content In A Datagrid Form" so hopefully it will provide some guidance.
 Maybe zryip or Trevor can help?

On Wed, Dec 21, 2011 at 8:12 AM, Charles Szasz <cszasz at mac.com> wrote:

> Hi Pete!
>
> I am using the Form version of DataGrid and not a table. The form is a
> scrolling field. I have one field "strategy" that displays statements from
> an array. This works fine. But as I stated before I have not been able to
> add an Edit Field (field "freq").
>
> When I include the following code for a Edit Field (field "freq") in the
> Behavior script, the statements from my Strategy field disappears!
>
> on FillInData pDataArray
>   set the text of field "Strategy" of me to pDataArray["Strategy"]
>   set the text of field "freq" of me to empty
> end FillInData
>
>
> on LayoutControl
>   local theFieldRect,theMasterRect
>
>   put the rect of me into theMasterRect
>
>   put the rect of field "Strategy" of me into theMasterRect
>   set the left of field "Strategy" of me to item 1 of theMasterRect
>
>   put the rect of field "freq" of me into theMasterRect
>   set the right of field "freq" of me to item 4 of theMasterRect
>
>   put the rect of grc "Background" of me into r
>   set the rect of grc "Background" of me to r
> end LayoutControl
>
> Any suggestions would be greatly appreciated!
>
> Charles Szasz
> cszasz at mac.com
>
>
>
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
>


-- 
Pete
Molly's Revenge <http://www.mollysrevenge.com>



More information about the use-livecode mailing list