Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dbedit() can be used to enter/edit records?

Status
Not open for further replies.

rskomal

Programmer
Feb 2, 2003
13
0
0
IN
Hi
I am shifting to Clipper from Foxpro for dos. How could I use DBEDIT() to enter/Edit new records with UDF.
 
Use the <cUserFunction> option to handle the input and give them a key to hit that pulls up an edit/append screen (if you have CA Tools then open a window for this) and then returns to the dbedit. The purists would say use TBrowse but I've only used that on a very complex browse.


Ian Boys
DTE Systems Ltd
 
Check dbedit syntax, you will see that the 5th parameter is a UDF e.g.

dbedit(1,2,20,78,fld,&quot;myfunc&quot;,pic,hdng)

then in the myfunc ...

FUNCTION MYFUNC
para cvar, fnvar
.
.
.
if lastkey()=13



read
endif
return fnvar


But if you have lots of time, just do the coversion in a GUI environment, go Visual...





 
Check the NG help for DBEDIT().

Use the example in it and modify.

Durai.
 
Hi
Currently I'm converting my application and every thing in dbedit. If need help pls
send me mail I'll send U my prg file for your reference.

Hemant Pandya
xpert@vsnl.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top