ESL Extension - OLD THREAD; DO NOT POST
Locked
-
Saturday, October 06, 2012 9:07 PM
New thread here: http://social.msdn.microsoft.com/Forums/en-US/smallbasic/thread/b8b5f9d8-4936-4666-941d-71de10617666
- Edited by Liam McSherry Wednesday, February 27, 2013 5:54 PM
All Replies
-
Sunday, October 07, 2012 12:18 AM
BUG REPORT:
When I do the following line:
TextWindow.Write(ESLMaths.Power(3,3))
It returns 81 when it should have returned 27.
I am a 10 year old that loves math, games, and computers. "Everyone is potentially great, you just have to turn it into kinetic greatness."
-
Sunday, October 07, 2012 4:21 AM
I think that's no bug. 3*3*3 is 81. :)
This looks nice! I will try it out. I look forwar to the ESLFile.Create("") part. :D
Good luck!
Greetings Timo
- Edited by Timo Sö Sunday, October 07, 2012 4:22 AM
-
Sunday, October 07, 2012 7:50 AM
A little glitch I noticed, there's no XML comment for the ESLWeb.POSTRequest() and .GETRequest()
So I don't know how to use it...
-
Sunday, October 07, 2012 10:18 AM
A little glitch I noticed, there's no XML comment for the ESLWeb.POSTRequest() and .GETRequest()
So I don't know how to use it...
There is a comment in Visual Studio, so I have no idea why it is not showing up. Here are the comments for it:
/// <summary> /// Make an HTTP "GET" request to the specified URL. /// </summary> /// <param name="URL">The URL to make a request to.</param> /// <param name="arguments">The parameters, in the following format: key=value&key2=value2&key3=value3</param> /// <returns>The contents of the web response.</returns>
/// <summary> /// Make an HTTP "POST" request to the specified URL. /// </summary> /// <param name="URL">The URL to make a request to.</param> /// <param name="arguments">The parameters, in the following format: key=value&key2=value2&key3=value3</param> /// <returns>The contents of the web response.</returns>
Example:

response = ESLWeb.GETRequest("https://{removed}/api/get-ptr/", "action=date") TextWindow.WriteLine(response) TextWindow.Read()The site I used in this example is my test website, so it might be a bit slow and it might not be up all the time.
- Edited by Liam McSherry Sunday, October 07, 2012 10:26 AM Added some example code.
- Edited by Liam McSherry Wednesday, February 27, 2013 5:54 PM
-
Sunday, October 07, 2012 10:32 AM
It'll be fixed for the next release. I had used a <= (greater-than-or-equal-to) rather than a < (greater-than) in my code. This means at least one function will now be inaccurate; this function is Exponent(), which uses Power().BUG REPORT:
When I do the following line:
TextWindow.Write(ESLMaths.Power(3,3))
It returns 81 when it should have returned 27.
I am a 10 year old that loves math, games, and computers. "Everyone is potentially great, you just have to turn it into kinetic greatness."
-
Sunday, October 07, 2012 2:48 PMActually, it isn't 81. 3 * 3 = 9; 9 * 3 = 27.
I am a 10 year old that loves math, games, and computers. "Everyone is potentially great, you just have to turn it into kinetic greatness."
-
Wednesday, February 27, 2013 5:22 PM
Hi
Tried your download link but just got a 'Forbidden' screen!!
Jasper Oaktree
-
Wednesday, February 27, 2013 5:54 PM
Yes, this is the old thread. You can find the new thread here: http://social.msdn.microsoft.com/Forums/en-US/smallbasic/thread/b8b5f9d8-4936-4666-941d-71de10617666Hi
Tried your download link but just got a 'Forbidden' screen!!
Jasper Oaktree
-
Wednesday, February 27, 2013 6:52 PMModerator
Liam, if you want we can lock this thread to new posts. -
Wednesday, February 27, 2013 8:06 PM
Please do, I believe that would be best.
Liam, if you want we can lock this thread to new posts.

