gss Posted March 17, 2005 Author Posted March 17, 2005 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
gss Posted March 17, 2005 Posted March 17, 2005 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
gss Posted March 17, 2005 Author Posted March 17, 2005 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
Ender Posted March 17, 2005 Posted March 17, 2005 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.
Ender Posted March 17, 2005 Posted March 17, 2005 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.
Ender Posted March 17, 2005 Posted March 17, 2005 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.
gss Posted March 17, 2005 Author Posted March 17, 2005 Thanks for the reply ... I meant FM Pro sorry for the slip. I will try that thanks.
gss Posted March 17, 2005 Author Posted March 17, 2005 Thanks for the reply ... I meant FM Pro sorry for the slip. I will try that thanks.
gss Posted March 17, 2005 Author Posted March 17, 2005 Thanks for the reply ... I meant FM Pro sorry for the slip. I will try that thanks.
BobWeaver Posted March 17, 2005 Posted March 17, 2005 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
BobWeaver Posted March 17, 2005 Posted March 17, 2005 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
BobWeaver Posted March 17, 2005 Posted March 17, 2005 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now