Page 1 of 1

URLEncode question

Posted: Sat Apr 13, 2013 11:28 pm
by reelstuff
I was looking over the dictionary for URLEncode("Test string $$") -- returns "Test+string+%24%24"

This code,

Code: Select all

put the text of fld "myTest" into varEncodemessage
put URLEncode (varEncodemessage) into fld "enc_string"
returns, Testing+out+the+URLEncode+function

looking at the dictionary this would appear to be incorrect, but there is not much in the dictionary, perhaps I should try the user manual?
edit, Opps, the user manual states for more information see the dictionary, LOL,

Re: URLEncode question

Posted: Sun Apr 14, 2013 3:06 am
by Simon
reelstuff,
Can't see what is in your fld "myTest" but if it's "Testing out the URLEncode function" then the result is correct. Replace all the spaces with "+".

Simon

Re: URLEncode question

Posted: Sun Apr 14, 2013 1:05 pm
by reelstuff
Thanks Simon, when I was reading the documentation, (which is not the most communicative or instructive documentation) I may have to scrap that function and find another one, I did see another approach that might work better but it builds the form call from the http headers to the body which would make sense in creating a LC version of a simple form where the string is url encoded.

Thanks for your reply, )