Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Ttod on dynamic sql
Message
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
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01407095
Message ID:
01407099
Vues:
52
>Hi
>I create dynamic Sql select.
>One option of query is specific date> mycursor.createtime(datetime field).
>The date work fine in by transform but how can I do it on the cursor field?
>Eample:
>
cquerystring=''
>cquerystring='select * from mycursor where .t.'&&get all lines
>cdated=transform(thisform.txtdate())&&it's OK
>cdone='ttod(mycursor.createtime)'&&&&&&&&&&Here the problem 
>cdt='>'
>cquerystring=cquerystring+' and '+cdone+cdt+cdated
>messagebox(cquerystring)&&show the query syntax for debug
>&cquerystring
you can use parameters...
cquerystring='select * from mycursor where .t.'&&get all lines
dated=thisform.txtdate() && This is date variable
cdone='mycursor.createtime'&&&&&&&&&&Here the problem 
cdt='>'
cquerystring=cquerystring+' and '+cdone+cdt+"m.dated"
messagebox(cquerystring)&&show the query syntax for debug
&cquerystring
MartinaJ
"Navision is evil that needs to be erazed... to the ground"

Jabber: gorila@dione.zcu.cz
Jabber? Jabbim
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform