sprintf simple realization in JScript
JScript has no strict types thus this realization does not support C library
format, instead it supports format applicable for the Javascript specifics. It
has only field width and alignment capabilities implemented. Example sprintf("A=%20l,B=%30r","Blah
Blah",234.56) will generate string with % escapes replaced with 20 and 30
characters wide fields containing: 1-st "Blah Blah" left aligned in the field
and 2-nd 234.56 right aligned. Also it supports a little type conversion excapes
but their purpose is to specify the type of the printed value. Genraal format
is:
%[width][type]alignment
width - optional integer field width in characters. Only the resulting
string is formatted!
type - type to convert to. Can be f - convert to float or n
- convert to integer.
alignment - Alignment in the field (as specified by width). Can be l
- left, r - right, c - center. If width is not specified the
letter used is not meaningful.
Click the image below to download (sprintf.js-code)
click here ...
File prprocessor
UNIX OS-es have some good utilities for file preprocessing based on
regular expressions, but Microsoft Windows does not. But Microsoft Windows has powerful scripting
engines and WSH thus the problem can be solved.
This script is able to process files described by the command line parameters
and replace some texts in them. It supports directory tree recursing, matching
file names with regular expression, processing parts of the files files
depending on the begin-end statements (defined by reg. exps. too) and so on.
Please note! You must be familiar with the JScript regular expressions in order
to use this utility. Wrong usage may cause loss of data thus it is recommended to
test it over some not important files first.
Also download the JScript documentation from the Microsoft site and see Regular Expression
object for the regular expressions syntax.
preprocessor.zip
click here ...
|
Barcodes
|
|
Active Label ActiveX
|
Barcoding and label design and printing embedded into the WEB applications.
|
|
Active Label Browser
|
Light weight application for Label design with support for most 1-d barcodes and pictures.
Links to databases, works with local and online resources, acts like a browser.
|
WEB programming
|
|
Active Local Pages
|
The same code on a WEB server or running as normal Windows application. ALP removes the borders
between WEB and desktop programming, it even allows you build autoruns, start your program from
a flash drive. ALP now has its own WEB site dedicated to it.
|
All-in-one ActiveX
|
|
ActiveX Pack1
|
Ever wanted an ActiveX package that covers almost everything and everywhere (PC, Pocket PC, Smartphone)?
AXPack1 is close to that - work with files/streams, scripting, string formatting,
write components in script, dictionary collections, data persistence and exchange and much more.
|
|
NetStreams
|
Part of AXPack1 that treats the TCP/IP and IRDA netwroking just like files - you can do with
them almost everything you can do with files.
|
|
SQLite COM
|
Part of AXPack1. Full SQL database engine in a single object. ActiveX port of the popular SQLite
datqabase.
|
IE Toolbars
|
|
IE ScriptBar
|
Create custom toolbars for IE, and make them do something really useful. You can do it
in script, VB or C but as easy as creating a dynamic WEB page.
|
For Pocket IE
|
|
AXGate
|
Work safely with unsafe ActiveX in Pocket Internet Explorer.
|
IIS Plug-ins
|
|
ISAPI Authenticator
|
Implement custom authentication for your WEB sites. ISAPI filter for all IIS and PWS versions.
|
|
ISAPI Variable parser
|
Make the parameters passed to your pages look like plain URL.
|
|
ISAPI Redirector
|
Spread the trafffic to your site to more than one server or simply implement smarter redirection.
|
|