RE: Insert a Record?

From: Lee Mitchell (Leemi_at_online.microsoft.com)
Date: 11/15/04

  • Next message: Dan Freeman: "Re: Insert a Record?"
    Date: Mon, 15 Nov 2004 21:26:34 GMT
    
    

    Hi Oscar:

    Use the old INSERT command. Here is info on the INSERT command from the
    VFP 3.0 Help file:

    INSERT [BEFORE] [BLANK]

    Arguments

    BEFORE

    Inserts a new record into the current table immediately before the current
    record. The new record is then displayed for editing. Additional new
    records can be added from within the editing window.

    BLANK

    Inserts a new blank record immediately after the current record. An editing
    window isn't displayed.

    Remarks

    If INSERT is issued without the BEFORE or BLANK clauses, a new record is
    added and the new record is then displayed for editing. Additional new
    records can be added from within the editing window.
    In Visual FoxPro, INSERT cannot be used on a table in a database that has
    table or row buffering enabled, or on a table with referential integrity
    rules such as triggers, primary or candidate keys, and so on. See
    CURSORSETPROP( ) for more information about table and row buffering, and
    see Chapter 7, "Working with Tables," in the Developer's Guide for
    additional information about referential integrity.
    If SET CARRY is ON, data in the current record is automatically copied into
    the new record.
    If the file is indexed, INSERT works like APPEND.

    Note INSERT isn't recommended for use with large tables because an
    insertion near the front of the table forces rewriting of nearly every
    record. This can take a very long time. Use INSERT - SQL instead.

    I hope this helps.

    This posting is provided "AS IS" with no warranties, and confers no rights.

    Sincerely,
    Microsoft FoxPro Technical Support
    Lee Mitchell

    *-- VFP9 Public Beta Now Available!! --*
    Download the VFP9 beta here: http://msdn.microsoft.com/vfoxpro/

    *-- VFP8 HAS ARRIVED!! --*
    Read about all the new features of VFP8 here:
       http://www.universalthread.com/VisualFoxPro/News/VFP8Release.asp
    Purchase VFP8 here:
       http://shop.microsoft.com/Referral/Productinfo.asp?siteID=11518
     
    Keep an eye on the product lifecycle for Visual FoxPro here:
    http://support.microsoft.com/default.aspx?id=fh;[ln];lifeprodv
       - VFP5 Mainstream Support retired June 30th, 2003
       - VFP6 Mainstream Support retired Sept. 30th, 2003

    >Hi, Does anybody know how to insert a record in a free-non-Ordered Table?
    >If I use append it will put the record at the of the table, but I need for
    >instance at the middle of it. Any command , function or Routine You
    >developed in VPF 8.0.
    >thanks. Oscar Miami.


  • Next message: Dan Freeman: "Re: Insert a Record?"

    Relevant Pages

    • Re: Help File Links not Working
      ... Going from VFP 9 to the help file works fine. ... Suppose you type "HELP AUTOINCREMENT" in the VFP 9.0 command box. ... Keep an eye on the product lifecycle for Visual FoxPro here: ...
      (microsoft.public.fox.programmer.exchange)
    • Re: Help File Links not Working
      ... It almost sounds like you have that help file on a network drive. ... Suppose you type "HELP AUTOINCREMENT" in the VFP 9.0 command box. ... Keep an eye on the product lifecycle for Visual FoxPro here: ...
      (microsoft.public.fox.programmer.exchange)
    • Re: Question about write a simple shell : how to output resoult to tty correctly
      ... std::cout to do your command I/O. ... "raw" mode to allow you to override the built-in editing. ... may be just too lazy to study "tty" it self. ...
      (comp.unix.programmer)
    • Re: RPN vs Algebraic UTPN failure in program
      ... It's actually normal, a direct consequence of the editing rules, ... The same would occur if you pressed any other command key ... whenever you are editing in RPN mode, ... you have to turn on the editor's PRG (program editing) state, ...
      (comp.sys.hp48)
    • Re: [MSH] MSH Not So Great For Interactive Users
      ... The keystrokes involved date back to the earliest versions of DOS in some cases, but primarily aim for compatibility with DOSKEY, which dates from DOS 5.0 iirc. ... I wasn't talking about arrow key editing but rather command line editing and substitution done via syntactic operators. ... http://www.coldie.net/project/jamsh is a MSH host that uses the GNU readline library and is probably a lot closer to what you are looking for - MSH with vi or emacs keystrokes. ... One big step in the right direction was the commitment that everything that can be done from a GUI can now be done from the command line. ...
      (microsoft.public.windows.server.scripting)