Input Special Character '%' in to Power Automate Desktop Set variable - character

I have tried to input % in to my variable as text using Set variable method. It is throwing syntax error:-

Related

Loading context in talend with tContextLoad when variable contains the separator

I am trying to load variables through a tContextLoad (with tFileInputDelimited as the input).
My separator is equal ("=").
Problem is, one of my variable contains this sign :
variable_01=http://someUrl/source=someSource
I tried to escape "=" character with backslash, double-backslash, but still when the variable is loaded, I have
variable_01=http://someUrl/source
How could I escape this character ? Important notice : when using implicit contextLoad from project settings, I don't have this issue. (unfortunately I can't use contextLoad implicit in this case)
Maybe you can try to use the component tFileInputProperties instead of tFileInputDelimited.
With this component only the first "=" of a line is used as a separator.

Grafana multivalue float histogram_quantile

Hi I'm forcing problem with histogram_quantile. If I'll set my variable to multi-value so I can repeat panels. Then I got error which says
parse error at char 21: unexpected character: '\'
My request is:
histogram_quantile($percentile, avg((rate(http_server_requests_seconds_bucket{instance=~"$server"}[1m]))) by (le, application))
$Percentile variable is initiated as custom with values as below and multi-value selected
0.9, 0.5, 0.99
The default format for variables escape the . with a backslash, so 0.5 becomes 0\.5.
To not escape ., you can use another format on the variable like this: ${percentile:raw}.
More information on format options here.
The histogram_quantile function requires a single floating point number as an input, and the multi-value feature of Grafana will produce something like 0\.9|0\.5|0\.99 which is not a floating point number. You will need to use multiple expressions for this.

Error: The input character is not valid in MATLAB statements or expressions

I have an error when I try to run this on Matlab r2012b
t=-2:.1:5;
x=3*exp(0.4*t);
y=2*exp(-0.9*t);
plot(t,x,t,y,':');
legend('x(t)','y(t)')
Yielding the error:
>> t=-2:.1:5;
t=-2:.1:5;
|
Error: The input character is not
valid in MATLAB statements or
expressions.
Editors note:
First code line of original post contained a "hidden" character (single source of error) which was, due to SO formatting, lost in the first edit (intended to fix code formatting). Even when re-rolling back to revision 1, the "hidden" character is lost.
t={Character: ASCII Code 2}-2:.1:5;
Original code (thanks Daniel) can be found here
http://pastebin.com/SyEHKpjR
In your code the third char of t=-2:.1:5; is not a whitespace (ASCII Code 32) like MATLAB displays it, it is a start of text (ASCII Code 2). I have no idea how these control chars got into your code, but to clean it up I recommend a text editor which allows to display all hidden chars.

get integer value as input through autohotkey

I am an AutoHotkey user; I need to get numeric value from an Edit control on a window to be used in some math calculations. However it seems the input value obtained from the Edit control (though contains only digits) is in string type; thus the script fails completing. You may show how to get an integer from an Edit control as input through AutoHotkey.
I shouldn't use percentage signs (%) for retrieving the variable in below expression: result:=%ValueFromEditCtrl%+2
result:=ValueFromEditCtrl+2 is correct.

How to filtering out characters on text item field in Oracle Forms?

we are using oracle forms...
we have to protect (or) block a text item field from special charecters.
like ( !##$%^&*)
please send some guidences.... thanks in advance...
Regards,
Vijay
When your text box as some entered text you got to have a function that validates all input.
On that function you have a range off invalid values. That range is made in ASCII.
You can use format mask property like 999.99
Which version of forms?
Brute force method:
v_prohibited_chars VARCHAR2(100) := '!##$%^&*';
v_result VARCHAR2(4000);
...
-- strip prohibited characters
v_result := TRANSLATE(:form_field,'A'||v_prohibited_chars,'A');
-- if anything was stripped, lengths will differ
IF LENGTH(:form_field) <> LENGTH(v_result) THEN
error...
END IF
If I understand your comment correctly, you want to be able to filter the special character(s) out of the form field?
The above code does that, and places the result in v_result. So, if you have an input value of 'ABC#DEF#', and your filter mask is '!##$%^&*', then after executing TRANSLATE your result will be 'ABCDEF'. You can then reassign this value to your form field. If you just want to silently strip the character, you can skip the LENGTH checking and simply assign the output of TRANSLATE back to your form field:
:form_field := TRANSLATE(:form_field,'A'||v_prohibited_chars,'A');
What TRANSLATE does is check the characters in the first parameter against the characters in the second parameter. When it finds a match, it translates that character into the corresponding character in the third parameter. If no corresponding characters exist in the third parameter for one in the second, then the character is translated to NULL. If a character does not appear in the second parameter, it remains unchanged. So, the character 'A' is translated to 'A', and all of the other characters in the mask are translated to NULL. The third parameter cannot be NULL, hence the dummy translation of 'A' to 'A'.