Jump to content

This topic is 7283 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

I have newbie question...

I have a price file in a fixed format:

sku(6)descr(12)retprice(6)wholeprice(6)

as one text string...

"PD3456PRODDESCRIPT001899002499"

How do I import into the database? (I went the excel route) I'd rather import it directly into foxpro

And the other question is once I get the price as a text string of say "001899" how do I turn it into 18.99 number?

Do I divide the number by 100 is that a calcuated field area?

Thanks

Posted

I have newbie question...

I have a price file in a fixed format:

sku(6)descr(12)retprice(6)wholeprice(6)

as one text string...

"PD3456PRODDESCRIPT001899002499"

How do I import into the database? (I went the excel route) I'd rather import it directly into foxpro

And the other question is once I get the price as a text string of say "001899" how do I turn it into 18.99 number?

Do I divide the number by 100 is that a calcuated field area?

Thanks

Posted

I have newbie question...

I have a price file in a fixed format:

sku(6)descr(12)retprice(6)wholeprice(6)

as one text string...

"PD3456PRODDESCRIPT001899002499"

How do I import into the database? (I went the excel route) I'd rather import it directly into foxpro

And the other question is once I get the price as a text string of say "001899" how do I turn it into 18.99 number?

Do I divide the number by 100 is that a calcuated field area?

Thanks

Posted

I'm not sure how it works in foxpro, but in FileMaker Pro, you would import the string into one text field, then parse that into individual fields using the middle() function.

To convert that text number into a decimal number, dividing by 100 should work if the numbers always have a 2-digit decimal portion.

Posted

I'm not sure how it works in foxpro, but in FileMaker Pro, you would import the string into one text field, then parse that into individual fields using the middle() function.

To convert that text number into a decimal number, dividing by 100 should work if the numbers always have a 2-digit decimal portion.

Posted

I'm not sure how it works in foxpro, but in FileMaker Pro, you would import the string into one text field, then parse that into individual fields using the middle() function.

To convert that text number into a decimal number, dividing by 100 should work if the numbers always have a 2-digit decimal portion.

Posted

Adding to what Ender said:

The parsing formulas are:

sku = Left(ImportDataField;6)

Descr = Middle(ImportDataField;7;12)

retprice = Middle(ImportDataField;19;6)/100

wholeprice = Right(ImportDataField;6)/100

Posted

Adding to what Ender said:

The parsing formulas are:

sku = Left(ImportDataField;6)

Descr = Middle(ImportDataField;7;12)

retprice = Middle(ImportDataField;19;6)/100

wholeprice = Right(ImportDataField;6)/100

Posted

Adding to what Ender said:

The parsing formulas are:

sku = Left(ImportDataField;6)

Descr = Middle(ImportDataField;7;12)

retprice = Middle(ImportDataField;19;6)/100

wholeprice = Right(ImportDataField;6)/100

This topic is 7283 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.