>I have a table student.dbf having fileds 1.Regno, 2.name. 3.Standard.
>
>I have create a record creatrion.scx, In that I have placed two text boxes namely From, To and one command button namely OK.
>
>I have create 500 records based on the Regno field. the starting Regno is "10001".so I have entered 10001 to "from" text boxes and
>10500 to "To" text boxes and click OK command button the 500 records have created, the Message box will dispaly Record created Successfully.
>
>How to create records through coding In VisualFoxpro?
You want to create records through code, right?
Something like this, assuming you get the range (from, to) from TextBoxes in the Form.:
lnFrom = ThisForm.TxtFrom.Value
lnTo = ThisForm.TxtTo.Value
local lnCounter
for lnCounter = lnFrom to lnTo
append blank
replace RegNo with lnCounter
next
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)