Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How To get the view parameter in the view result
Message
De
14/04/2015 06:49:53
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Allemagne
 
 
À
14/04/2015 06:47:16
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 8
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01618350
Message ID:
01618353
Vues:
33
So?
lcPara = CAST(INPUTBOX() as c(20))
SELECT;
 lcMuh as cPara;
 Cur1.SomeField,;
 Cur1.nOtherField;
 FROM curIrgendwer as Cur1;
 INTO CURSOR curResult;
 WHERE Cur1.cFieldToAsk=lcPara
>Hallo Lutz,
>
>danke für die Antwort, aber:
>
>Der Parameterwert muss erfragt werden. Deshalb ist die Variante mit &Parameter zwingend.
>
>Gerhard
>
>>>Hello,
>>>
>>>I would like to have a view parameter of a parameterized view as a column inthe view.
>>>
>>>Is this possible? If so: How?
>>>
>>>TIA
>>>Gerhard
>>
>>Hallo Gerhard
>>
>>So?
>>
>>lcPara = 'muh'
>>SELECT;
>> CAST(lcPara as c(20)) as cPara;
>> Cur1.SomeField,;
>> Cur1.nOtherField;
>> FROM curIrgendwer as Cur1;
>> INTO CURSOR curResult;
>> WHERE Cur1.cFieldToAsk=lcPara;
>>
>>?
>>Das CAST sorgt dafür das auch leere Zeichenketten und .NULL.. gewandelt wird.
>>
>>Lutz
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord

Weeks of programming can save you hours of planning.

Off

There is no place like [::1]
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform