Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to add table to the form DE at runtime
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
How to add table to the form DE at runtime
Divers
Thread ID:
00950084
Message ID:
00950084
Vues:
73
Hi All,
i wantto do a search form for customer list,stock codes etc. when user need them while entering data. by the normal way i can create for each target a form and can put them tables of these forms. but i wantto do a specific and parametrik form. eg. user will describe some variables from start and will call the form with these variables. then form execute the commands as a parameters. by this issue i can put at runtime or design time properties to the form but i couldnt put table to the form DataEnvironment . how can i do this ?

sample code
local lctable,lcindex,lcfield,lcsearch

lctable="stocks"
lcIndex="code"
Lcfield="code"
Lcsearch=""

do form SrchForm with m.lctable,m.lcIndex,m.Lcfield,m.Lcsearch

* form is modal
* form init
lparamaters lctable,lcindex,lcfield,lcsearch

with this.grid1
.recordsource=m.lctable
.refresh
endwith

* form unload
lcsearch=m.lctable+"."+m.lcfield
return m.lcfield
what should i do extra ? for return value from form actions ? i wantto do it everything via paramaeters by this way i'll use only one search form for these targets ...

TIA
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform