Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Function as a recordsource
Message
From
25/05/2012 08:05:14
 
 
To
25/05/2012 01:54:54
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 6 SP5
Miscellaneous
Thread ID:
01544366
Message ID:
01544380
Views:
58
>How can I use function as a recordsource in grid (for example recordsource sholuld be function(table.field) )?

You can do that for grid columns;
Simply enclose it in small bracket when entering column controlsource

( myFunc(datetime()) )

But this will not work on grid record source if this is what you wanted.
Any time grid recourdsource is changed all column settings are lost, underlying cursor for grid is closed, grid goes white etc.

So if you need your grid being set at run time it is better idea to build it from scratch in some form method.


HTH
Sergio
*****************
Srdjan Djordjevic
Limassol, Cyprus

Free Reporting Framework for VFP9 ;
www.Report-Sculptor.Com
Previous
Reply
Map
View

Click here to load this message in the networking platform