Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem with ==
Message
De
02/07/2002 09:39:44
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Allemagne
 
 
À
02/07/2002 08:48:00
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Divers
Thread ID:
00674353
Message ID:
00674421
Vues:
23
Hi Gregory,
I will pay attention to this and redesign the method.
I agree on not using vars directly (it was only as an example).

Now I have to to think where to get the fieldlenght from, because the filter box is an abstract one and there need no data to be in scope or even open in the moment of setting the values. It will bring a lot of fun to my colaborators to set fieldlenght to a property on each character filter ...


Thank you and Cetin for fast help.

Agnes

>Agnes,
>
>Well, I would padr the value the user entered and put the padr'ed into the filter.
>You cannot expect the user to know the length of a/every field
>
>
>Better not use a variable in a filter. If it runs out of scope, you've had it
>
>myval = padr(myval, fsize('NameField'))
>myval = '[' + myval + ']'
>
>set filter to NameField == &myval
>
>
>If you do this, then the filter() is directly usable in a select sql.
>Thought that was what you were after ;-)
>
>
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