FXP extension.If there are any errors, creates a file an.
PRG)Press CTRL + W - To save and close the program windowExecuting ProgramPrograms can be executed by DO command.Syntax:DO Example:Do journalWhen compile the executed file the FoxPro creates an object code program with.
Read more: Program is a set of instructions used to achieve the desired output.To create new program or to edit the existing one.MODI COMMOR MODIFY COMMAND NOTEcommandIf ignore the particular line or command, NOTE can be used at the beginning of that line.Comment LineTo add comments to the right of the Programming code, use &Clear All CommandThis command is used to closes all databases files and releases all active memory variables, arrays menus or popup.Input / Output command? | ? | ?- To print the expression in new line?- To print the expression in the same line?- The Output will going to the printerExample:? "Hellow!"Sample ProgramNOTE prg for just print something on the screenClear& To Clear the Screen or previous outputs?"Welcome"?"Hellow!"? " World.!"? "Thank youWriting Programs* FoxPro has powerful built-in editor for writingand editing.* It can be invoked from the command window byusing the MODIFY COMMAND.Syntax:MODIFY COMMAND Example:Modify Command journal(This program will automatically save with theextension. Modify Structure: Modify structure (Or) Modi struAPPENDAppend is used to add the new record.Syn: append ExAppendAppend Blank- To add blank records.Append from first.dbf- To add the records from FIRST.DBF to SECOND.DBF- Same Structure is required for these databasesDISPLAYUsed to display the particular record.Syn: Display Ex:DisplayDisplay AllDisplay All Records in page wise.To Display the structure of the databases:Display StructureTo display the status of the set commands.Display StatusTo display the status of the system memory variables.Display MemoryTo view the status barSet stat onTo edit the current RecordEdit GO TOPUsed to move the record pointer at the first record.GO BOTTOM:Used to move the record point at the last record.GoTo go to a particular recordSyn:- GO Eg:- GO 8Go to record 8ListUsed to list the records.Syn:list Close all To close the all opened database.TO Create New DATABASE:Syn: crea create Ex: crea book COMMANDS IN FOXPROIn foxpro first four characters of any command is enough to executeFor e.g.:-crea=>createTO OPEN THE DATABASE: Syn: use Ex: use bookTO CLOSE THE DATABASE: Use To close the current opened database.