I have little time working with scriptcase and I have a question, I am working with a control form, I make a query to a database and assign the last record in a gloval variable, as it could give segmentation to that variable at a given time it loses the assigned value and Sample 0, I hope you can help me thanks.
How you are assigning the value, and where is declaring the global variable?
In general I advise to define global variables in your main application in the onapplicationinit. You are probabely doing it in your application and as the init is executed every time the value will be reset.
Thanks to the variable I define it in a control form with value = 0, when entering the following form I have a procedure where it searches for the last id of the documents and I assign the value that I obtain through an SQL query
thanks to review that part, on one occasion review a video where you see at the bottom the execution of the code how can I do that.
I’m not sure if I understand you right. If your global variable is being reset - is what I understand - then it’s due to a re-initialization, or assignment. But ‘a’ video and ‘the’ code. Sorry, I don’t understand.