473,406 Members | 2,336 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

schema info file

hello everyone,

how do i specify a decimal position for a certain field in my schema file?

(for example:
Col1="AMT" Double Width 10
)
the amount field in the data file does not contain a decimal (i guess it's
assumed).

when i try to import using text provider there is no decimal point. is there
a way i can get that to work?
Nov 21 '05 #1
6 898
Mattie,

Maybe I should know this, however what kind of schema?

Cor

"mattie" <ma****@discussions.microsoft.com>
hello everyone,

how do i specify a decimal position for a certain field in my schema file?

(for example:
Col1="AMT" Double Width 10
)
the amount field in the data file does not contain a decimal (i guess it's
assumed).

when i try to import using text provider there is no decimal point. is
there
a way i can get that to work?

Nov 21 '05 #2
On Tue, 21 Dec 2004 12:49:06 -0800, mattie <ma****@discussions.microsoft.com> wrote:

¤ hello everyone,
¤
¤ how do i specify a decimal position for a certain field in my schema file?
¤
¤ (for example:
¤ Col1="AMT" Double Width 10
¤ )
¤ the amount field in the data file does not contain a decimal (i guess it's
¤ assumed).
¤
¤ when i try to import using text provider there is no decimal point. is there
¤ a way i can get that to work?

See the following:

http://msdn.microsoft.com/library/de...a_ini_file.asp
Paul ~~~ pc******@ameritech.net
Microsoft MVP (Visual Basic)
Nov 21 '05 #3
this is the exact article i'm reviewing: my question is
under the topic Specifying Data Type Formats and Conversions
how do you specify those options?
"Paul Clement" wrote:
On Tue, 21 Dec 2004 12:49:06 -0800, mattie <ma****@discussions.microsoft.com> wrote:

¤ hello everyone,
¤
¤ how do i specify a decimal position for a certain field in my schema file?
¤
¤ (for example:
¤ Col1="AMT" Double Width 10
¤ )
¤ the amount field in the data file does not contain a decimal (i guess it's
¤ assumed).
¤
¤ when i try to import using text provider there is no decimal point. is there
¤ a way i can get that to work?

See the following:

http://msdn.microsoft.com/library/de...a_ini_file.asp
Paul ~~~ pc******@ameritech.net
Microsoft MVP (Visual Basic)

Nov 21 '05 #4

"mattie" <ma****@discussions.microsoft.com> wrote in message
news:21**********************************@microsof t.com...
hello everyone,

how do i specify a decimal position for a certain field in my schema file?

(for example:
Col1="AMT" Double Width 10
)
the amount field in the data file does not contain a decimal (i guess it's
assumed).
Not by the schema.
Your assumption is incorrect.
There can be no assumed or implied decimal point using this method.
when i try to import using text provider there is no decimal point. is
there
a way i can get that to work?


The data file must have a point in numeric fields, or whatever character you
specify using DecimalSymbol
You need to go back to whatever generated the text file and change the
process so it puts decimal places in.
Or, if the decimal place is defiinitely implied to (say) 2 places then
import to a table and then divide by 100.

If you're from one of those countries uses commas for decimal points then
you'll also want to consider fixed width fields as comma delimited will be a
bit of a problem.

--
Regards,
Andy O'Neill
Nov 21 '05 #5
On Wed, 22 Dec 2004 12:07:02 -0800, "rodchar" <ro*****@discussions.microsoft.com> wrote:

¤ this is the exact article i'm reviewing: my question is
¤ under the topic Specifying Data Type Formats and Conversions
¤ how do you specify those options?

What is the format of the text for this particular value in the file? In other words, in what
position of the value does the decimal position appear?
Paul ~~~ pc******@ameritech.net
Microsoft MVP (Visual Basic)
Nov 21 '05 #6
thanks this helped.

"Andy O'Neill" wrote:

"mattie" <ma****@discussions.microsoft.com> wrote in message
news:21**********************************@microsof t.com...
hello everyone,

how do i specify a decimal position for a certain field in my schema file?

(for example:
Col1="AMT" Double Width 10
)
the amount field in the data file does not contain a decimal (i guess it's
assumed).


Not by the schema.
Your assumption is incorrect.
There can be no assumed or implied decimal point using this method.
when i try to import using text provider there is no decimal point. is
there
a way i can get that to work?


The data file must have a point in numeric fields, or whatever character you
specify using DecimalSymbol
You need to go back to whatever generated the text file and change the
process so it puts decimal places in.
Or, if the decimal place is defiinitely implied to (say) 2 places then
import to a table and then divide by 100.

If you're from one of those countries uses commas for decimal points then
you'll also want to consider fixed width fields as comma delimited will be a
bit of a problem.

--
Regards,
Andy O'Neill

Nov 21 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: inquirydog | last post by:
I am trying to store my computer network information in an xml file, and plan to write an xml schema for the file. The general format of the xml should be like this <networkinfo>...
3
by: william_hulse | last post by:
The general process i am currently working on is this: STEP 1 xml doc1 is transformed using stylesheet1 to produce xml doc2 - xml doc1 has a namespace declaration as follows... <?xml...
0
by: Harold Putman | last post by:
The XmlValidatingReader seems to have changed drastically in .Net Frameworks 1.0 SP3 and beyond with regards to validating XML files that are XML Schemas. Consider the following code: ---...
6
by: Martin | last post by:
Hi, I have a xml file like the one below <?xml version="1.0" encoding="utf-8"?><e1 xmlns:e1="http://tempuri.org/Source1.xsd" e1:att1="1" e1:att2="2" e1:rest="345"/> If I try to create a...
0
by: comic_rage | last post by:
Hi, I need to use C# to print the xml schema root <?xml version="1.0" encoding="UTF-8"?> <xsd:schema targetNamespace="http://www.ciber.com/myfile" xmlns="http://www.ciber.com/myfile"...
1
by: Chris Lieb | last post by:
I am new to XML Schema and am running into a bit of a snag. I have defined an XML-based scripting language for an updater program that I am working on. I would like to make a schema for this...
4
by: Stan R. | last post by:
Hello, I have xmllint and xsltproc installed and running on both my linux and win32 platforms, all seems good. I have a couple questions though. 1) If I have an external dtd file, which is...
4
by: olivier.scalbert | last post by:
Hello, I need to create an xsd to validate the following type of xml: <?xml version="1.0" encoding="UTF-8"?> <root <exception1 xsi:type="ExceptionAType"> <Type>1</Type> <Info>Bla bla</Info>...
3
by: dantohester | last post by:
Hi there, I have the following situation: I want to create an XML document that contains 2 parts: a) a XHTML part (it can be either version 1.0 or 1.1 ) b) a non XHTML part that contains some...
1
by: mr t | last post by:
The DataTable xml written out, produces the following xml. can anyone show me how to extract that schema and put it in external file? the reason for this, is that I want to apply that structure to...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.