Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using wildcards
Message
De
22/06/2001 11:47:28
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
22/06/2001 11:38:02
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Divers
Thread ID:
00522523
Message ID:
00522537
Vues:
8
This message has been marked as the solution to the initial question of the thread.
Well, first of all, "str(..." will pad with spaces to the left. Use either "alltrim(str(" or "transform(".

Second, you can't put "year(" within quotation marks. Your expression should be something like:
... LIKE "%" + transform(year(date()) + "EE%"
>
>
>and it worked fine, but now I have to change it to be more flexible and not hard coded in so I want to change it to something like this:
>
>and studentcourse.courseid like "%str(year(date())) + "EE"%";
>
>I can't figure out the syntax to get it to work. I know its an easy fix, can someone please help.
>
>TIA,
>Tyler
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform