Quote from sakismor on October 30, 2020, 7:26 pmHello to all.
I need a small help that I have with variable. I make a small example that I put a text entry that I put the variable [test] that is 15.20 and I try to see it with the value that i put in the page enter.
I can't find how to write in the text entry the variable and the neobook understand that is variable and to show it at text.
Can you help me? Is it possible?
Hello to all.
I need a small help that I have with variable. I make a small example that I put a text entry that I put the variable [test] that is 15.20 and I try to see it with the value that i put in the page enter.
I can't find how to write in the text entry the variable and the neobook understand that is variable and to show it at text.
Can you help me? Is it possible?
Uploaded files:Quote from HPW on October 30, 2020, 7:52 pmHello,
I do not get the idea what you want to do.
When I type the 15.20 in the top text entry and hit the button, the [example] gets filled with the 15.20 and is shown in the bottom text object. A variable [text] is never used in your demo.
Regards
Hans-Peter
Hello,
I do not get the idea what you want to do.
When I type the 15.20 in the top text entry and hit the button, the [example] gets filled with the 15.20 and is shown in the bottom text object. A variable [text] is never used in your demo.
Regards
Hans-Peter
Quote from sakismor on October 30, 2020, 9:27 pmThank you for your answer.
I will try to explain to you the idea. First of all variable [text] is not used in the example but I use the variable [test] that is equal to 15.20.
I try to put as text the [test] variable at the top and when you press the button to show it down the 15.20. It is like when you press the button the app runs this expression:
SetVar "[example]" "[test]"
So the [example] variable to be equal with the 15.20
About the real problem I try to make a program for products and in the description field to replace the text variable [Height] and [Width] with the value that I put in an other field.
Is it clear now?
Thank you for your answer.
I will try to explain to you the idea. First of all variable [text] is not used in the example but I use the variable [test] that is equal to 15.20.
I try to put as text the [test] variable at the top and when you press the button to show it down the 15.20. It is like when you press the button the app runs this expression:
SetVar "[example]" "[test]"
So the [example] variable to be equal with the 15.20
About the real problem I try to make a program for products and in the description field to replace the text variable [Height] and [Width] with the value that I put in an other field.
Is it clear now?
Quote from impactband4u on October 30, 2020, 10:23 pm@sakismor
I too don't understand what you really want but i assume you want the "Example" Text Field to change or resize to 15.20 when you press the button, or to any other size, depends what you put in. Example 15mm height x 20mm width.
First of all it's not necessary to put "[test]" variable name in "InputText Field". Without it, it will still work.
Secondly you need two variables to add "Height" and "Width" and then resize your "TextEntry" to that size.
See demo pub.
Hope this help
I too don't understand what you really want but i assume you want the "Example" Text Field to change or resize to 15.20 when you press the button, or to any other size, depends what you put in. Example 15mm height x 20mm width.
First of all it's not necessary to put "[test]" variable name in "InputText Field". Without it, it will still work.
Secondly you need two variables to add "Height" and "Width" and then resize your "TextEntry" to that size.
See demo pub.
Hope this help
Uploaded files:
Quote from danito on October 31, 2020, 1:33 amNo puedes usar variables como texto predeterminado en un InputText.
En Page Enter cambia SetVar "[test]" "15.20" por SetVar "[InputText]" "15.20".
Borra la palabra "[test]" de las propiedades del objeto InputText.
En el PushButton2 utiliza GetObjectInfo "InputText" "Caption" "[example]"
No puedes usar variables como texto predeterminado en un InputText.
En Page Enter cambia SetVar "[test]" "15.20" por SetVar "[InputText]" "15.20".
Borra la palabra "[test]" de las propiedades del objeto InputText.
En el PushButton2 utiliza GetObjectInfo "InputText" "Caption" "[example]"
Uploaded files:
Quote from sakismor on November 1, 2020, 10:45 amThank you all for the replies!!!
I make a new pub that can explain better my problem. Please download it.
I explain what exactly I want to do:
In the left side is where I insert my products informations. Product name, height and width. The description must be general for all my products and I am not having to put the datas again. (Product name, height and width) So to grap the text from the up fields.
In the right side:
-up is the description that I get now ( not the right one)
-down is the description that I like to have.
Please ask me if you have any questions.
Thank you all for the replies!!!
I make a new pub that can explain better my problem. Please download it.
I explain what exactly I want to do:
In the left side is where I insert my products informations. Product name, height and width. The description must be general for all my products and I am not having to put the datas again. (Product name, height and width) So to grap the text from the up fields.
In the right side:
-up is the description that I get now ( not the right one)
-down is the description that I like to have.
Please ask me if you have any questions.
Uploaded files:Quote from impactband4u on November 1, 2020, 10:22 pmSee if this is what you want
See if this is what you want
Uploaded files:Quote from sakismor on November 4, 2020, 8:47 amThank you for your solution.
But I just need to make it work not programmatically but if you published the pub.
I need to understand the Neobook the variables that I put in the text entry as variables and change them.
Is that possible?
Thank you for your solution.
But I just need to make it work not programmatically but if you published the pub.
I need to understand the Neobook the variables that I put in the text entry as variables and change them.
Is that possible?
Quote from fkapnist on December 1, 2020, 7:50 amI FIXED IT FOR YOU, @sakismor
It was tricky because you were using special characters in your InputText
I removed the special characters from the input text (and left only the needed text) but inserted them again when the Send Data button is pushed, and now everything works as you would want it to.
http://www.awareware.com/NEOWINPLUGINS/testxx.pub
Always watch out for these characters in your Input Text. It is best to keep them out completely and insert them later with a string replace...
setvar "[quotemark]" "[#34]"
setvar "[bracketleft]" "[#91]"
setvar "[bracketright]" "[#93]"
setvar "[verticalline]" "[#124]"
setvar "[carriagereturn]" "[#13]"
- good luck with your project!
..
I FIXED IT FOR YOU, @sakismor
It was tricky because you were using special characters in your InputText
I removed the special characters from the input text (and left only the needed text) but inserted them again when the Send Data button is pushed, and now everything works as you would want it to.
http://www.awareware.com/NEOWINPLUGINS/testxx.pub
Always watch out for these characters in your Input Text. It is best to keep them out completely and insert them later with a string replace...
setvar "[quotemark]" "[#34]"
setvar "[bracketleft]" "[#91]"
setvar "[bracketright]" "[#93]"
setvar "[verticalline]" "[#124]"
setvar "[carriagereturn]" "[#13]"
..
Quote from luishp on December 1, 2020, 8:04 am@fkapnist remember to mention @sakismor using the "@" before his user name. This way he will receive an automatic email with your answer to his question.
Thank you!
@fkapnist remember to mention @sakismor using the "@" before his user name. This way he will receive an automatic email with your answer to his question.
Thank you!