Jump to content

how to use a global variable in ExtEvents functions


Bektas

Recommended Posts

I have a public integer variable named myval in TMainForm . how can I use it in a function of ExtEvents?

 

I tried it below it works but I don't want myval  to update every time. 

Self.WebForm.JSInterface.JSAssign('myval', [2356]);

Is there a command that works like the following?

I tried the UniSession.AddJS('TMainForm.myval')  but it didnot work  because I am new I dont know how to use it .

This question has been asked a lot, but I could not find any clearly answer.

Thanks

Bektas

Link to comment
Share on other sites

7 minutes ago, Bektas said:

I am not using  trial version. I dont understant why my profile is important. 

Thank you.

Once again if you own a uniGUI subscription please make the above adjustment so you will gain full access to forums.

Link to comment
Share on other sites

12 hours ago, Bektas said:

I now get it why I can't download some attached files. Thanks for warning 

Thank you for adjusting your forum email.

 

14 hours ago, Bektas said:

I have a public integer variable named myval in TMainForm . how can I use it in a function of UniEventStrings?

 

I tried it below it works but I don't want myval  to update every time. 

Self.WebForm.JSInterface.JSAssign('myval', [2356]);

Is there a command that works like the following?

I tried the UniSession.AddJS('TMainForm.myval')  but it didnot work  because I am new I dont know how to use it .

This question has been asked a lot, but I could not find any clearly answer.

Thanks

Can you please clarify your question once again?

Link to comment
Share on other sites

  var W=MainForm.UniPanel1.getWidth() - MainForm.UniSpeedButton1.getWidth();
 I can get  objects MainForm  in functions of extevents but I can not get variables of MainForm or UniServerModule .why?

I use that UniSession.AddJS('var i');
 Self.WebForm.JSInterface.JSAssign('i', [125]);

I don't want to use it that way. I'm constantly updating the variables when changing values

 

 

 

 

Link to comment
Share on other sites

  • Bektas changed the title to how to use a global variable in ExtEvents functions

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...