Search Photo  
RSS Feed
23 November 2009
  Home | Forum | Photo Gallery | Wallpapers | Business | Entertainment | Education | Sports | Article | City |
Free News on your website
School, College, University, Institute, Institute, Coaching Center and other Education Institute of India
Education Directory | Results | Who is Who | Notes | Article | Tutorial | Information | Dictionary | News 
 
  CA Clipper | FoxPro |

 

News FlashAs far as Kashmir issue is concerned, India will not redraw borders: Singh | Pakistan has not done enough on the Mumbai terror attacks: Manmohan Singh | No apprehension about US viewing India differently: Manmohan Singh | Winters leave Ladakh out of bound, make stocking of food material a must | Eco-friendly vehicles rally held in Delhi | People worship Highway Goddess for safe journey in Chennai | Lucknow Zoo authorities treating tiger for cancer | Hussey ready to cop criticism, but will let bat do the talking | PAC supports idea of making Pak Army's financial records public | Pak heading towards 'demographic disaster', warn experts |
FoxPro Tutorial & Source Code
* Author      : Team of Pelagian Softwares
* Date        : 24/03/2007
* Source      : sh_str.prg
* Description : Function to Make Short Name of Person


set talk off
accept "enter your full name: " to fullName

smName = abrv(fullname)

?"Full Name: "
?fullName
?
?"Short Name:"
?smname

* Paste This Function in Your program file
* call this function for variable/field boths

FUNCTION abrv
   PARA _fl
   _fl = _fl + " "
   l=len(_fl)
   y=0
   _sh=UPPER(left(_fl,1)+".")
   do whil y    if subs(_fl,y,1)=" "
     _sh=_sh+UPPER(subs(_fl,y+1,1)+". ")
    else
    endI
    y=y+1 
   endD

   _fl=alltrim(_fl)
   l=len(_fl)
   y=len(_fl)
   _sr=""
   do whil !y=0
    if subs(_fl,y,1)=" "
     exit
    else
     _sr=UPPER(subs(_fl,y,1))+_sr
    endI
    y=y-1 
   endD
   x=len(alltrim(_sh))
   _sh=LEFT(ALLTRIM(_sh),x-2)+ALLTRIM(_sr)

REturn ;
  (PADR(_sh,l-1))
  
   

Also download:  

Category for FoxPro

Database
Financial
Mathametics
Screen
Search
Security
Sound
String

 

All right reserved by Khabarexpress.com
Contact Us | Archives | Sitemap | Can't see Hindi ?
Special Edition: Lakshchandi Mahayagya, Camel Festival 2007, Vartmaan Sahitya, Bikaner Udyog Craft Mela
Our Network rajb2b.com | khabarexpress.com | uniqueidea.net | PelagianDictionary.com | hindinotes.com
Developed & Designed by Pelagian Softwares