BLOb-functions:
Edit |
 |
from |
 |
substitutable
with F_LEFT |
from |
 |
substitutable
with LEFT |
F_BLOBLEFT
|
compatibility
to
FreeUDFLib, FreeUDFLib AvERP, GrUDF |
Entrypoint
|
blobleft |
not compatible with
UTF-8 - use U_LEFT
|
Input |
BLOB
INTEGER |
TextBLOb
Length of returned string |
Output |
CSTRING(32760) |
string
which is cut by the
indicationnumber from left gives from parameter 2 |
Counting
starts with 1
TestSQL (to use with TestISO.GDB)
SELECT 'ein einzeiliger' AS ISCORRECT, F_BLOBLEFT(TEXTBLOB, 15) FROM
BLOBTEST WHERE BLOBTESTID = 1;
SELECT '' AS ISCORRECT, F_BLOBLEFT(TEXTBLOB, 15) FROM BLOBTEST WHERE
BLOBTESTID = 11;
SELECT NULL AS ISCORRECT, F_BLOBLEFT(TEXTBLOB, NULL) FROM BLOBTEST
WHERE BLOBTESTID = 10; |
  |
from |
  |
substitutable
with F_MID |
F_BLOBMID
|
compatibility
to
FreeUDFLib,
FreeUDFLibC,
FreeUDFLib AvERP, GrUDF
|
Entrypoint
|
blobmid |
not compatible with
UTF-8 - use U_MID |
from |
  |
substitutable
with F_COPY or F_STRCOPY |
F_RBLOBMID |
input/output-compatibility
to
rFunc (B_SUBSTR, B_LONGSUBSTR) |
Entrypoint
|
r_blobmid |
not compatible with
UTF-8 - use U_MID |
Input |
BLOB
INTEGER
INTEGER |
TextBLOb
Position, at which the determined string starts
Length of returned string |
Output |
CSTRING(32760) |
number
of letters
(parameter 3) of the entered text starting from the entered
letternumber (parameter 2) |
F_BLOBMID
- counting for parameter 2 starts with 0
F_RBLOBMID - counting
for parameter 2 starts with 1
TestSQL (to use with TestISO.GDB)
SELECT 'zwei' AS ISCORRECT, F_BLOBMID(TEXTBLOB, 4, 4) FROM BLOBTEST
WHERE BLOBTESTID = 2;
SELECT NULL AS ISCORRECT, F_BLOBMID(TEXTBLOB, NULL, NULL) FROM
BLOBTEST
WHERE BLOBTESTID = 10; |
  |
from |
 |
substitutable
with F_RIGHT |
from |
 |
substitutable
with RIGHT |
F_BLOBRIGHT |
compatibility
to
FreeUDFLib,
FreeUDFLibC,
FreeUDFLib AvERP, GrUDF |
Entrypoint
|
blobright |
not compatible with
UTF-8 - use U_RIGHT |
Input |
BLOB
INTEGER |
TextBLOb
Number of indications from right |
Output |
CSTRING(32760) |
string
which is cut to the
number of indications counted from right from parameter 2 |
Counting
starts with 1
TestSQL (to use with TestISO.GDB)
SELECT 'dritten Zeile' AS ISCORRECT, F_BLOBRIGHT(TEXTBLOB, 13) FROM
BLOBTEST WHERE BLOBTESTID = 3;
SELECT NULL AS ISCORRECT, F_BLOBRIGHT(TEXTBLOB, NULL) FROM BLOBTEST
WHERE BLOBTESTID = 10; |
  |
from |
  |
obsolete, substitutable
with
|| (like strings) |
F_BLOBCAT  |
compatibility
to
zu GrUDF |
Entrypoint
|
blobcat |
not compatible with
UTF-8 - use || |
Input |
BLOB
BLOB |
TextBLOb
to
join with TextBLOb from parameter 2
TextBLOb to append to TextBLOb from parameter 1 |
Output |
BLOB |
Joins
two TextBLObs to one
TextBLOB |
This
function appends an CRLF and than append the 2nd BLOb
TestSQL (to use with TestISO.GDB)
INSERT INTO BLOBTEST (TEXTBLOB) SELECT F_BLOBCAT(TEXTBLOB, (SELECT
TEXTBLOB FROM BLOBTEST WHERE BLOBTESTID = 2)) FROM BLOBTEST WHERE
BLOBTESTID = 1;
Insert a new record in table BLOBTEST with the content of the field
TEXTBLOB form datarow with ID = 1 append with the datarow ID = 2 |
  |
from |
  |
obsolete, substitutable
with
|| (like strings) |
F_BLOBCATSTR  |
compatibility
to
GrUDF |
Entrypoint
|
blobcatstr |
not compatible with
UTF-8 - use || |
Input |
BLOB
CSTRING(32760) |
TextBLOb
to
join with String from parameter 2
String to append to TextBLOb from parameter 1 |
Output |
BLOB |
Joins
a TextBLObs and a
string to a TextBLOB |
This
function appends an CRLF and than append the string.
TestSQL (to use with TestISO.GDB)
INSERT INTO BLOBTEST (TEXTBLOB) SELECT F_BLOBCATSTR(TEXTBLOB, 'Diese
Zeile wurde angehängt') FROM BLOBTEST WHERE BLOBTESTID = 1;
Insert a new record in table BLOBTEST with the content of the field
TEXTBLOB form datarow with ID = 1 append with tthe string ‘Diese
Zeile
wurde angehängt' |
  |
from
|
  |
substitutable
with REPLACESTRING |
F_BLOBREPLACESTRING  |
function
from adhoc
|
Entrypoint
|
blobreplacestring |
not compatible with
UTF-8 - use U_BLOBREPLACESTRING |
U_BLOBREPLACESTRING |
function
from adhoc
|
Entrypoint
|
u_blobreplacestring |
compatible with
UTF-8 |
Input |
BLOB
CSTRING(254)
CSTRING(254)
INTEGER
INTEGER |
TextBLOb
to
be modified by replacing a string
the string to be replaced in BLOb
new string
0 = just replace the first appearance, 1 = replace all appearance
0 = case sensitive, 1 = not case sensitive |
Output |
BLOB |
TextBLOb
with replaced
one/all character strings fromParameter 2 of the the BLOB by the
character string from Parameter 3 |
TestSQL
(to use with TestISO.GDB)
SELECT 'vier einzeiliger TextBLOb' AS ISCORRECT,
F_BLOBREPLACESTRING(TEXTBLOB, 'ein', 'vier', 0, 0) FROM BLOBTEST
WHERE
BLOBTESTID = 1;
SELECT 'vier vierzeiliger TextBLOb' AS ISCORRECT,
F_BLOBREPLACESTRING(TEXTBLOB, 'ein', 'vier', 1, 0) FROM BLOBTEST
WHERE
BLOBTESTID = 1;
|
  |
from |
  |
substitutable
with F_SUBSTR |
F_BLOBSUBSTR |
compatibility
to
FreeUDFLib,
FreeUDFLibC,
FreeUDFLib AvERP, GrUDF
input/output-compatibility
to
rFunc (B_STRPOS) |
Entrypoint
|
blobsubstr |
not compatible with
UTF-8 - use U_BLOBSUBSTR |
U_BLOBSUBSTR |
function
from adhoc
|
Entrypoint
|
u_blobsubstr |
compatible with
UTF-8 |
Input |
BLOB
CSTRING(1024) |
TextBLOb
(in
which you are looking for the string from parameter 2)
String (you are looking for in the BLOb) |
Output |
INTEGER |
position
in the BLOb where
the string starts |
Counting
starts with 0.
TestSQL (to use with TestISO.GDB)
SELECT 4 AS ISCORRECT, F_BLOBSUBSTR(TEXTBLOB, 'einzeiliger') FROM
BLOBTEST WHERE BLOBTESTID = 1;
SELECT NULL AS ISCORRECT, F_BLOBSUBSTR(TEXTBLOB, NULL) FROM BLOBTEST
WHERE BLOBTESTID = 10; |
  |
F_BLOBLINE |
compatibility
to
FreeUDFLib, FreeUDFLib AvERP
input/output-compatibility
to rFunc (B_LINE, B_LONGLINE) |
Entrypoint
|
blobline |
compatible with
UTF-8 |
Input |
BLOB
INTEGER |
TextBLOb
No. of row for output |
Output |
CSTRING(32760) |
the
content of the
<parameter 2> row of the TextBLOb |
TestSQL
(to use with TestISO/UTF8.GDB/FDB)
SELECT 'mit einer zweiten Zeile' AS ISCORRECT, F_BLOBLINE(TEXTBLOB,
2)
FROM BLOBTEST WHERE BLOBTESTID = 3;
SELECT NULL AS ISCORRECT, F_BLOBLINE(TEXTBLOB, NULL) FROM BLOBTEST
WHERE BLOBTESTID = 10; |
  |