Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Import from Excell problem
Message
From
27/12/2006 04:32:41
 
 
To
27/12/2006 04:24:25
Albert Beermann
Piepenbrock Service Gmbh & Cokg
Osnabrück, Germany
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Database:
MySQL
Miscellaneous
Thread ID:
01180418
Message ID:
01180420
Views:
14
>Hello everybody
>
>I have a excell file "einzerteileraus"
>Column h contains x,X or blank
>I need all records with x or X
>
>SELECT 0
>IMPORT from einzerteileraus TYPE xls
>SELECT einzerteileraus
>
>SELECT A as idtnr,H as deletetag FROM einzerteileraus WHERE alltrim(UPPER(H)) = "X" INTO CURSOR einzerweg
>browse
>
>I have all rows of the execell file in my cursor (even if column h is " ") ???
>
>SELECT A as idtnr,H as deletetag FROM einzerteileraus WHERE UPPER(H) = "X" INTO CURSOR einzerweg
>browse
>This one works !!???
>What is the problem with alltrim() ???
>What do i miss ???

You miss the basic, namely that comparison with = always start from the left, and stops when the string on the right side of = stops. So 'X'='' but ''#'X'. In your first Select, use == instead of =. Read more in help on SET EXACT, and "String and Value Comparison in Visual FoxPro"

>Any help welcomed
>Best regards
>Albert
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform