Relative Content

Tag Archive for arraysclassdelphimethodsaccess-violation

why does my method refuse to assign values to external vars and arrs?

I have two methods in the same class. One method calls the other. Lets call em method 1 and method 2. Method 1 calls Method 2. for whatever reason, when I try assigning values in method 2 to arrays or vars that are not local to that method , I get an access violation error. I double checked everything and it all makes logical sense and even asked chat GPT and it gave me the green light (Chat gpt, the most trusted source of advice).

why does my method refuse to assign values to external vars and arrs?

I have two methods in the same class. One method calls the other. Lets call em method 1 and method 2. Method 1 calls Method 2. for whatever reason, when I try assigning values in method 2 to arrays or vars that are not local to that method , I get an access violation error. I double checked everything and it all makes logical sense and even asked chat GPT and it gave me the green light (Chat gpt, the most trusted source of advice).