Subject | RE: [firebird-support] Re: Equivalent of VFP6 LEFT() in FB |
---|---|
Author | Peter Gore |
Post date | 2004-09-13T17:29:58Z |
Take a look at freeudflib. You can get it at
http://www.ibphoenix.com/downloads/freeudflib20010211.zip
Peter Gore
-----Original Message-----
From: kaczy27 [mailto:kaczy27@...]
Sent: 13 September 2004 09:22
To: firebird-support@yahoogroups.com
Subject: [firebird-support] Re: Equivalent of VFP6 LEFT() in FB
--- In firebird-support@yahoogroups.com, Namit Nathwani
<namitnathwani@h...> wrote:
SUBSTRING(value FROM startpos [FOR length])
I don't know how this will work with blobs, but I'd try casting it
first
SUBSTRING(CAST(value) as VARCHAR(100)) FROM startpos [FOR length])
Yahoo! Groups Links
http://www.ibphoenix.com/downloads/freeudflib20010211.zip
Peter Gore
-----Original Message-----
From: kaczy27 [mailto:kaczy27@...]
Sent: 13 September 2004 09:22
To: firebird-support@yahoogroups.com
Subject: [firebird-support] Re: Equivalent of VFP6 LEFT() in FB
--- In firebird-support@yahoogroups.com, Namit Nathwani
<namitnathwani@h...> wrote:
> Hi allviews
>
> I have this FB table containing a BLOB (Text) field. For a remote
> select statement I have written this in VFP6 as below:cShortAddress ;
>
> SELECT MCUSTOMSOFFICE.*, LEFT(MCUSTOMSOFFICE.mAddress, 44) AS
> FROM MCUSTOMSOFFICE MCUSTOMSOFFICE ;for varchar fields you can use
> ORDER BY MCUSTOMSOFFICE.CNAME
>
> The LEFT() does not seem to be recognized by FB/ODBC, what is the
> equivalent of LEFT()
SUBSTRING(value FROM startpos [FOR length])
I don't know how this will work with blobs, but I'd try casting it
first
SUBSTRING(CAST(value) as VARCHAR(100)) FROM startpos [FOR length])
> Please advise.HTH
>CUIN Kaczy
> Regards
> Bhavbhuti
Yahoo! Groups Links