Subject RE: [firebird-support] RE: Re: Equivalent of VFP6 LEFT() in FB
Author Peter J. Gore
Unfortunately blobs cannot be cast to any other data type. There is a
UDF that adds the function F_BlobLeft that will do what you want.
Download it from http://www.ibphoenix.com/downloads/wmBlobUDF.zip



Peter Gore

Project Manager IT

(ddi) 01277 376433

(swb) 01277 372916

(mob) 07952 695755

________________________________

From: vso_ad1@... [mailto:vso_ad1@...] On Behalf Of
Namit Nathwani
Sent: 15 September 2004 06:03
To: firebird-support@yahoogroups.com
Subject: [firebird-support] RE: Re: Equivalent of VFP6 LEFT() in FB



Hi Peter

At 07:34 pm 14/09/2004, you wrote:
>If you want to use substring the syntax is
>SELECT SUBSTRING( MyCharField FROM 1 FOR 5) FROM MyTable
>You only need to CAST if the selected field is not of character type.

I tried to cast the Blob Text to varchar and then substring it but the
cast
to varchar did not work.

SUBSTRING(CAST(mAddress) as VARCHAR(100)) FROM 1 FOR 44)




Regards
Bhavbhuti
___________________________________________
Softwares for Indian Businesses at:
http://ahmedabad.sancharnet.in/vso_ad1/
namitbn@...
___________________________________________

----------


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.762 / Virus Database: 510 - Release Date: 13/09/2004


[Non-text portions of this message have been removed]





Yahoo! Groups Sponsor

ADVERTISEMENT
click here
<http://us.ard.yahoo.com/SIG=129hldvm0/M=295196.4901138.6071305.3001176/
D=groups/S=1705115386:HM/EXP=1095317677/A=2128215/R=0/SIG=10se96mf6/*htt
p:/companion.yahoo.com>


<http://us.adserver.yahoo.com/l?M=295196.4901138.6071305.3001176/D=group
s/S=:HM/A=2128215/rand=585887728>



________________________________

Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/firebird-support/

* To unsubscribe from this group, send an email to:
firebird-support-unsubscribe@yahoogroups.com
<mailto:firebird-support-unsubscribe@yahoogroups.com?subject=Unsubscribe
>

* Your use of Yahoo! Groups is subject to the Yahoo! Terms of
Service <http://docs.yahoo.com/info/terms/> .



__________________________________________________________________________
TM Retail, Ashwells Road, Brentwood, Essex CM15 9ST

This e-mail including any attachments is intended only for the addressee
named above and it may contain confidential or privileged information.
If you are not the intended recipient please notify the sender and note
that the contents must not be disclosed to anyone else, no copies can be
taken and all existing copies must be destroyed.
TM Retail will not be liable for any error in transmission.
You should carry out your own virus checks before opening any attachments.
Opinions, conclusions and other information in this message
and attachments that do not relate to the official business
of TM Retail are neither given nor endorsed by it.
TM Retail is the trading name of Forbuoys Limited.

[Non-text portions of this message have been removed]