NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: terryd on January 15, 2018, 11:30:05 PM

Title: For Jason - Exam question
Post by: terryd on January 15, 2018, 11:30:05 PM
Hi Jason. Sorry I cant reply to your message it produces error 500
Just off the top of my head.
Do a count of records in the table RECORDS(table)
Generate random number x# = RANDOM(1,RECORDS(table))

GET(table,x#)   GET using File,filepointer)
Title: Re: For Jason - Exam question
Post by: ntnewbies on January 16, 2018, 01:41:08 AM
Hi Terry,
Thank you very much for the prompt reply.

My situation is a bit more complex.

Need to choose randomly among the filtered records.

For example,


Category File - Field: CategoryName
User File - Field: User ID
Product File - Field: CategoryName, ProductName, UserID


If user id 1 opens the product file, it should pick randomly a record from Product File but it must be within that user id.

Jason