Brett Barabash
BBarabash at TappeConstruction.com
Wed Aug 11 13:18:40 CDT 2004
String("@",40)
-----Original Message-----
From: accessd-bounces at databaseadvisors.com
[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Colby, John
Sent: Wednesday, August 11, 2004 12:33 PM
To: 'accessd at databaseadvisors.com'
Subject: [AccessD] formatting strings and placing them in a larger
string
I need to take some piece of data, format it correctly (yyyymmdd for
dates, $$$$.CCCC for currency, XXXX.DD for other floats, etc.
I then need to place it in a specific length field, padded left with
spaces.
I then need to insert that string inside of a larger string at a
specific location.
Someone posted a solution for placing a string inside a larger string
but I can't find the email.
I can build up a string of @ characters into the correct length using a
simple:
While Len(strPad) < mintLen
strPad = strPad & "@"
Wend
But is there any way to just specify that I want a string of 40 @
characters?
JWC
--
--------------------------------------------------------------------------------------------------------------------
The information in this email may contain confidential information that
is legally privileged. The information is only for the use of the intended
recipient(s) named above. If you are not the intended recipient(s), you
are hereby notified that any disclosure, copying, distribution, or the taking
of any action in regard to the content of this email is strictly prohibited. If
transmission is incorrect, unclear, or incomplete, please notify the sender
immediately. The authorized recipient(s) of this information is/are prohibited
from disclosing this information to any other party and is/are required to
destroy the information after its stated need has been fulfilled.
Any views expressed in this message are those of the individual
sender, except where the sender specifies and with authority,
states them to be the views of Tappe Construction Co.
This footer also confirms that this email message has been scanned
for the presence of computer viruses.Scanning of this message and
addition of this footer is performed by SurfControl E-mail Filter software
in conjunction with virus detection software.