× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.


  • Subject: Re: Convert Alpha to Numeric
  • From: "Gary Monnier" <GaryMon@xxxxxxxxxxxxxxxxxx>
  • Date: Fri, 14 Apr 2000 15:05:29 -0700
  • Organization: The PowerTech Group

Title: Convert Alpha to Numeric
Have you tried the Move op-code?  It should do what you want to do.
 
    MOVE     AlphaField            NumericFld
 
Another way is to define a data structure
 
DSName        DS
  AlphaField                 1   20
  NumericFld              11   20  3
 
or
 
DSName        DS
  AlphaField                 1   20
  NumericFld                     10  3      Overlay(AlphaField:11)
----- Original Message -----
Sent: Friday, April 14, 2000 2:00 PM
Subject: Convert Alpha to Numeric

Hello.  I may be asking a basic question but what is the best way to convert an alpha field into a numeric?  In my situation I have a 20-Alpha where the values are whole numbers.  I need to get that whole number into a 10.3 field.

Any suggestions would be greatly appreciated!  Thanks!

--------------------------------------------------------
Kevin Baltus - Programmer/Analyst
(651) 290-6179   kbaltus@automaticproducts.com
Gross-Given Mfg/Automatic Products International
http://www.automaticproducts.com

Blatant Band Plug
http://www.twitch.org




As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.