Category : Files from Magazines
Archive   : DBMS0790.ZIP
Filename : TECHTIP2.JUL

 
Output of file : TECHTIP2.JUL contained in archive : DBMS0790.ZIP

Listing 2 for Rushworth Tip


CLEAR
phonenum=SPACE(12)
@ 9,5 SAY "Enter Phone Number " GET phonenum PICTURE "XXX/XXX-XXXX"
READ
@ 12,5 say phone(phonenum)
return


FUNCTION PHONE
PARAMETERS phon_str
PRIVATE counter,a_str,nu_phon,char,x
counter=1
phon_str=UPPER(phon_str)
nu_phon=""
a_str="ABCDEFGHIJKLMNOPRSTUVWXY"
DO WHILE counter<=LEN(phon_str)
char=SUBSTR(phon_str,counter,1)
x=AT(char,a_str) && Determine if char is in phone string
IF x=0 && No find in main phone string
nu_phon=nu_phon+char && Turn char back
ELSE && Determine position of char as a phone digit
nu_phon=nu_phon+LTRIM(STR(IIF(MOD(x,3)<>0,INT(2+INT(x/3)),INT(1+(x/3)))))
ENDIF
counter=counter+1
ENDDO
RELEASE counter,x,char,a_str
RETURN(nu_phon)




  3 Responses to “Category : Files from Magazines
Archive   : DBMS0790.ZIP
Filename : TECHTIP2.JUL

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/