Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Calculating on a GRID
Message
From
12/08/1998 08:39:01
 
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00125215
Message ID:
00125952
Views:
19
VFP will take property sheet values in consideration during grid initialization (behind the scene) when sometimes recordsource cursor doesn't exist yet, and can trigger error 'variable expected to be use as controlsource'. If you fire the same thing programmatically, then you know at least where to debug.

>Hi Edward,
>I notice you mention avoiding entering calculations directly onto the property sheet. I do have problems with this, but I'm wondering if you could explain why it's better to do it programmatically.
>Thanks!
>
>>>i could not get the following to work in the pem. controlsource at the column. method calc_int at the grid.
>>>
>>>controlsource this.parent.calc_int("xxx_loan")
>>>
>>>thanks - brenda
>>
>>Few notes:
>>1. What is 'xxx_loan'?
>>2. The syntax should be Column.Controlsource="thisform.custommethod(parm1,parm2..)"
>>If you want to type it directly to property sheet (which better be avoided) add '=', i.e. =thisform.....
>>3. Don't cut off previous part of UT thread when you reply, because it creates difficulties for potential answerers.
Edward Pikman
Independent Consultant
Previous
Reply
Map
View

Click here to load this message in the networking platform