Focal Point
[SOLVED] How to find/replace a tabulator character in an alphanumericfield?

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/4457043906

September 06, 2011, 03:59 AM
TKMAN
[SOLVED] How to find/replace a tabulator character in an alphanumericfield?
I tried variations of this but not with much success..

-SET &myHEX = HEXBYT(9,'A1');

TABLE FILE BLUB
PRINT
FIELD_ONE
WHERE FIELD_ONE CONTAINS '&myHEX';
END

Is there a way to find/replace decimal characters 0-31?

TIA
Marcus

This message has been edited. Last edited by: Kerry,


-----------------------------
PROD WF 7.7.02, PMF 5.2.3, MSQL 2005
QA WF 7.7.02, PMF 5.2.3, MSQL 2005
Primarily self-service; adapters: SAP BW, SAP R/3, SQL Server, FlexEnable
Windows, all output
September 06, 2011, 06:06 AM
<JG>
Marcus

TABLE FILE BLUB
PRINT
FIELD_ONE
WHERE FIELD_ONE CONTAINS HEXBYT(9,'A1');
END
September 06, 2011, 09:26 AM
TKMAN
Thx JG! unfortunately it is not returing any lines when I use decimals from 0-31.
The documentation in WF shows an ASCII set with this descr.

This chart shows the primary printable characters in the ASCII and EBCDIC character sets and their decimal equivalents. Extended ASCII codes (above 127) are not included.

I dont know if these codes arent just included or not supported at all in the Id like to use it.


-----------------------------
PROD WF 7.7.02, PMF 5.2.3, MSQL 2005
QA WF 7.7.02, PMF 5.2.3, MSQL 2005
Primarily self-service; adapters: SAP BW, SAP R/3, SQL Server, FlexEnable
Windows, all output
September 06, 2011, 05:35 PM
Waz
HEXBYT supports from 0 to 255.

Are you sure that there is a TAB character in the field ?

You can check the HEX codes of the field with the function UFMT.

DEFINE FILE CAR
 TABCOUNTRY/A10 = CTRAN(10,COUNTRY,78,9,'A10') ;
 HEXCOUNTRY/A20 = UFMT(TABCOUNTRY,10,HEXCOUNTRY) ;
END
TABLE FILE CAR
PRINT TABCOUNTRY
      HEXCOUNTRY
WHERE TABCOUNTRY CONTAINS HEXBYT(9,'A1') 
END



Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

September 07, 2011, 06:55 AM
TKMAN
OK thx WaZ & JG

choosing the right field helps a lot :-)


-----------------------------
PROD WF 7.7.02, PMF 5.2.3, MSQL 2005
QA WF 7.7.02, PMF 5.2.3, MSQL 2005
Primarily self-service; adapters: SAP BW, SAP R/3, SQL Server, FlexEnable
Windows, all output