coding help

forum.centura.team.developer (2000-2005) & forum.sqlwindows (2000-2005)
NewsgroupServer
Robot
Robot
Posts: 118939
Joined: 24 Feb 2017, 12:00
Location: World wide

coding help

Post by NewsgroupServer » 22 Mar 2005, 17:46

 Posted by:  Raj 

Hello All,

Can Someone help me with the code for the problem that I am having below.

I have a table window with a column 'Code' which should generate 1.001 in
the first row then 1.002 in the next and so on when I click on the 'Insert
Row' pushbutton.

Thanks,

Raj.

NewsgroupServer
Robot
Robot
Posts: 118939
Joined: 24 Feb 2017, 12:00
Location: World wide

coding help

Post by NewsgroupServer » 22 Mar 2005, 20:13

 Posted by:  Klaus-Werner Konrad 

Hi Raj,

after setting the context to the inserted row simply code:

Set Code = 1 + SalTblGetRowCount( tblXY ) / 1000

Should work as long as you don't have split rows.

HTH

KWK

Return to “forum.sqlwindows”

Who is online

Users browsing this forum: Ccbot [Crawler] and 0 guests