Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ALLTRIM in a sql expression of cursoradapter
Message
From
28/03/2010 11:02:34
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01457654
Message ID:
01457674
Views:
36
try




>
>vp_in ='%/F1/F4/%'
> TEXT TO .SELECTCMD NOSHOW TEXTMERGE PRETEXT 15
>			SELECT HDBK, Hid , HDOCNO, HAMOUNT,  STR( HDOCDATE ) AS 'DATEDOC',CREATEDBY,
>			STR(Createdon) AS 'createdon' , hremint  FROM <<.TABLES>>
>WHERE HDBK LIKE  ?vp_in
>		      ENDTEXT
>

>Hi gregory,
>
>I put a picture with attachment.
>
>(Private)
>vp_in ='/F1/F4/'
>
>
> TEXT TO .SELECTCMD NOSHOW TEXTMERGE PRETEXT 15
>			SELECT HDBK, Hid , HDOCNO, HAMOUNT,  STR( HDOCDATE ) AS 'DATEDOC',CREATEDBY,
>			STR(Createdon) AS 'createdon' , hremint  FROM <<.TABLES>>
>		      ENDTEXT
>
>
>This command give 42000 RECORDS...
>
>
> TEXT TO .SELECTCMD NOSHOW TEXTMERGE PRETEXT 15
>			SELECT HDBK, Hid , HDOCNO, HAMOUNT,  STR( HDOCDATE ) AS 'DATEDOC',CREATEDBY,
>			STR(Createdon) AS 'createdon' , hremint  FROM <<.TABLES>>
>WHERE HDBK LIKE '/F1/F4/FC/ '
>		      ENDTEXT
>
>This command give NO record and in do'nt understand the reason...
>
>
>
>
>
>
>
>
>
>>>>>I'm assuming that '%' is included into Vp_in already, because otherwise I don't see a reason for using LIKE and not = at all.
>>>>
>>>>In that case, there's no need to trim, is there ?
>>>
>>>No need to trim, you're right. I'm wondering why Bernhart insists on trimming.
>>
>>
>>Maybe the %'s aren't in after all
Gregory
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform