Hi,
I am new to HyperNext and have an idea for a database-type program similar to the Book HN and HC projects. I was wondering if there was a way to script a button to add a new card in the program? I have tried to use the the HN and HC projects but they are both erroring out before I could use them.
Any help would be great.
Hi
Welcome to HyperNext.
There is a function called
CardCreateFN that duplicates the specified card. I have just tried it and it worked.
For example, assuming a project with just one card:-
Local cnum
@ duplicate home card
Put CreateCardFN(1) into cnum
GotoCard cnum
Note, the function
TotalCardsFN should return the number of cards in the application but it has a bug because in an app with only 1 card it returns 2. However, after a card has been created it does return the correct number of cards.
Malkom