Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8555987
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T15:14:56+00:00 2026-06-11T15:14:56+00:00

I know this programming language is pretty obsolete, but my company still uses it

  • 0

I know this programming language is pretty obsolete, but my company still uses it and it’s hard to find specific help with these kinds of things online because of it being unsupported. I searched for a few options on here but found nothing.

Here’s what my data looks like: 8005551234.000000

Here’s what I need my data to look like: 8005551234

The reason it’s showing up with the trailing zero’s is because I’m assuming when I imported the data into FoxPro via an excel add on the field was an integer field, and when it was converted to a dbf it needed to be a character field.

I’ve played around with the TRANSFORM function a bit, but I can’t seem to figure it out.

My field name is “Phone” if that helps…

Thanks in advance for your support!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T15:14:56+00:00Added an answer on June 11, 2026 at 3:14 pm

    If the field “phone” doesn’t have hyphens in it as commented by Frank in another answer, you can always strip by using LEFT( x, at()).. such as

    replace Phone with left( phone, at( ".", phone ) -1 );
        for at( ".", phone ) > 0
    

    If you have a format with decimals as place-holders for the phone, such as

    1.800.TRY.MORE.

    You might have to use the optional 3rd parameter of “AT()” function which indicates which “.” instance you are interested in. In the example of 1.800… you could try

    replace Phone with left( phone, at( ".", phone, 4) -1 );
        for at( ".", phone, 4 ) > 0
    

    AT() function is basically

    Look for “X” found in string “Y” and optionally, look for the “n” instance such as
    AT( X, Y, n )

    Hope this helps.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I know this is not programming related, but I have a scenario. Each video
I know this isn't a programming question but I would really like the users
I know this isn't directly related to programming, but I was wondering if anyone
I know this might be obvious, but bear with me my generic programming background
Please forgive my programming knowledge. I know this is a simple thing, but I
This may not be a programming question, but I don't know where to ask
So I know this is a pretty common error, but I'm very new to
The only programming language I really know right now is python. I am pretty
I know this post , I've already read it but still I'd like to
This question can be applied to any programming language, but as I am thinking

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.