query selected row assing vales to global vars

Started by eldonfsr, June 06, 2026, 01:32:22 PM

Previous topic - Next topic

eldonfsr

Hi i will tried is from query when user click on OK button assign values from columns to global vars i don't if doing right or not i attached image what i doing hopping get some help..
 
on program show me error too for access variables to sorry but i learning and is not easy when you don't have samples...

Devon Austen

The errors in your program is because of the new lines.

In pxplus the if block of code needs to be 1 line of code.

You can fix it by doing something like

if a=b then {
a=1
b=2
} else {
a=0
b=0
}

You can also just get rid of the new lines and have it be one line of code. If in the preferences you set edited list it will display it as multiple lines of code.


Also QrySelcia:companycode$="" is not correct syntax. What are you trying to check with the if condition?

maybe you just want companycode$=""?


Principal Software Engineer for PVX Plus Technologies LTD.

eldonfsr

Ok Thanks i made changes as you suggest but i got another error, what i tring to is when user click on button ok from query assign company to global variable and the show company name on statusbar if company is gloabla i can validate or open file belong to company... or folder directory...

query erro not correspong for next