Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Function as a recordsource
Message
De
25/05/2012 08:05:14
 
 
À
25/05/2012 01:54:54
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 6 SP5
Divers
Thread ID:
01544366
Message ID:
01544380
Vues:
59
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform