Page 1 of 1
Webserver SetOutValue
Posted: Mon Nov 07, 2022 2:26 pm
by RGV250
Hi,
Is there a technical reason why this value can only be a string, I would like to send mostly numeric data and find it a bit annoying having to convert to a string first, I seem to have more code converting the data than creating it.
Bob
Re: Webserver SetOutValue
Posted: Mon Nov 07, 2022 2:29 pm
by BenR
Hi Bob,
On the webpage where the value is displayed it will be as a string.
We could add a new functions allowing you to pass as an integer number or as a float if that would help.
Re: Webserver SetOutValue
Posted: Mon Nov 07, 2022 6:20 pm
by RGV250
Hi Ben,
I know less about web pages than I do about Flowcode so might be overthinking it. In the future version of my project I would like to use web pages that are not embedded in Flowcode as mentioned at the end of this thread
viewtopic.php?f=3&t=1420&start=20
If I do that I might need/want to use the variable directly, if it were a string I would have to convert it back which does seem wasteful codewise to me.
Perhaps it would be best to discuss with others before you go to the trouble for me if it is not really needed.
Bob
Re: Webserver SetOutValue
Posted: Tue Nov 08, 2022 10:05 pm
by BenR
Hello,
External or internal pages can request substitution OutValue strings in their HTML code by using %0 to request string 0 and %1 to request string 1 etc. %% allows you to print out a % character.
Creating the files and then reading them would also be possible but may create concurrency issues unless you are very careful about when the files are written and accessed.
Re: Webserver SetOutValue
Posted: Wed Nov 09, 2022 8:44 am
by RGV250
Hi Ben,
Thanks, I think you mentioned that before. I can see how it works for the internal pages but was not sure I understood how there was a link between the 2 programs.

- Magic.jpg (15.08 KiB) Viewed 1999 times
I think here it is definitely beneficial (for me) if it were possible to have numeric/float variables instead of strings if that is possible.
Regards,
Bob