BUILDER CONVERSION FUNCTIONS The Builder Library Conversion Functions Consist of Three Very Simple Yet Handy Functions. Hex2Dec() and Dec2Hex() are Virtually Self- Explanatory, and I Urge You to Look at Their Samples to See How They Work. The Use for Asc2Bin() Isn't as Obvious, But is the MOST Useful Function is This Group. The Asc2Bin() Function is Priceless, and Here is How I Have Evolved Using It Most Effectively: 1) Add 1 Field to OPTIONS.DBF for Every Different Printer Escape Code Your System Will Require. You May Also Put the Data in the Field At This Time. 2) Remove the Line or Comment Out the Line in the Builder Generated Source That Closes the OPTIONS.DBF Database. (Or Just Re-Gen Your Source for Builder to Do This Automatically -- It Will Detect Fields Added to OPTIONS.DBF!) 3) Add the Neccesary Lines of Code to Save Your New OPTIONS.DBF Fields to Memory Variables. (Generating Code With Additional OPTIONS.DBF Fields Will Do this For You) 4) (Optional) Add a Window to Your Program (Under "Utilities") to Edit the Memory Variables Created in Step 3, and Save Them to OPTIONS.DBF When Changed. (Very Simple Builder Window With a VERY Simple Conversion Using the GetEdit() Function) 5) Enter the Command "@ PROW(),PCOL() SAY Asc2Bin(ALLTRIM(YOUR_MEMVAR_HERE))" as Part of a Printed Report to Send Your Escape Code. This Method Allows Your Application to Support any Change in Printer Hardware and it Makes Debugging Printer Escape Codes Easier. Simple But Effective! ** End of File