Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Reassigning the range of an array
Message
From
22/01/2003 05:34:38
Dorin Vasilescu
ALL Trans Romania
Arad, Romania
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00744129
Message ID:
00744161
Views:
14
The point is why we must "hack" the SCX to accomplish such a simple thing?
If you change RecordSource alias in designer, ControlSource property values for all columns will be deleted, but I think this must be another thread.


>>And what about columns and textboxes ControlSource property ? ;)
>
>USE form.scx
>SET FILT TO objname="grid_name" OR ;
>            upper(".grid_name.") $ upper(parent) AND baseclass#"header"
>
>* Control source for columns are store in properties for grid.
>
>
> MartinJ
>
>>
>>>>This is not a big problem. But if you want to change RecordSource alias for a grid with 20 columns ... this will be a problem
>>> No, is small problem.
>>>
>>> USE form.scx
>>> LOCATE FOR objname="grid_name"
>>> * BROWSE
>>> * open memo field PROPERTIES
>>> * change property RecordSource
>>> * close memo
>>> * close table
>>>
>>>
>>> MartinJ
>>>
>>>>
>>>>
>>>>>>
>>>>>>ASELOBJ(laFormRef,1)
>>>>>>DIMENSION laFormRef[1].{FormProperty}(n)
>>>>>>
>>>>>
>>>>>This works. I have to say I'm extremely surprise we have to go that way to change that information. I guess it's time to add a wish entry on that one. I'll do it. Thanks
Previous
Reply
Map
View

Click here to load this message in the networking platform