Search Photo  
RSS Feed
22 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 FlashBrit woman turns her back on lawyer's career to make easy money as hooker | Ride-on lawnmowers land thousands of people in hospital every year | Cat endures 3,000-mile sea journey from Egypt to UK in shipping container! | Stem cells in breast milk could fulfil baby's 'genetic destiny' | Wayne Rooney's gay cousin wants to be a dad | Mariah Carey 'to host grand champagne party for X Factor champ' | Elizabeth Hurley's India affair over? | Goa all set to host IFFI from Monday | A.R Rahman urge people to maintain cleanliness around Ajmer Dargah | FIFA may impose World Cup ban on French 'Hand Ball' striker Henry |
FoxPro Tutorial & Source Code
* Author      : Team of Pelagian Softwares
* Date        : 28/03/2007
* Source      : chtable.prg
* Description : Program to creat field in structure / table through coding

set talk off
set safe off
clear

do addField with "STUDENT",      "FAT_NAME", "C",  30, 0 

proc addField 
 
   para data2ch, fldname, fldtype, fldlen, flddec
   procChk=.n.
   use &data2ch
   if type( fldname ) = 'U'
    procChk=.y.
   endI
   clos data
   
   if procChk
    ?"Creating Field",fldname,"in",data2ch
    USE &data2ch
    copy to temp for !dele()
    USE TEMP
    COPY TO SEXT STRUCTURE EXTENDED
    use sext
    appe blank
    repl FIELD_NAME with fldname
    repl FIELD_TYPE with fldtype
    repl FIELD_LEN  with fldlen
    repl FIELD_DEC  with flddec
    USE 
    if file("TEMPX.OLD")
     erase tempx.old
    endI
    RENAME TEMP.DBF TO TEMPX.OLD

    CREATE TEMP FROM SEXT ALIAS cAlias
    USE 
    USE TEMP
    APPEND FROM TEMPX.OLD
    clos data
    USE TEMP
    copy to &data2ch
    clos data
   else
    ?
    ?
    ?fldname,"Field already exist in",data2ch
   endI
   clos data

REturn .t.



Also download: database/student.dbf 

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