Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using wildcards
Message
From
22/06/2001 11:47:28
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
22/06/2001 11:38:02
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Miscellaneous
Thread ID:
00522523
Message ID:
00522537
Views:
7
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)
Previous
Reply
Map
View

Click here to load this message in the networking platform