Skip to Content
It is currently March 19th, 2019, 11:53 pm

All times are UTC - 6 hours [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: February 16th, 2019, 7:12 am 
Offline
Junior User
Junior User

Joined: September 7th, 2018, 9:00 am
Posts: 51
is it possible to write into a string a webresponse?

I mean, I would like to send a query to http://ipv4bot.whatismyipaddress.com/
It answers with just my public IP

and I would like to assign this IP to a variable.

thus a kinda

Code:
var IPCurrent : string;
IPCurrent := WebToString('http://ipv4bot.whatismyipaddress.com/');


But I can't see any WebToString function

Thanks in advance


Top
 Profile  
Reply with quote  
PostPosted: February 16th, 2019, 8:13 am 
Offline
SVS Member
SVS Member

Joined: December 6th, 2004, 9:00 am
Posts: 7773
Location: Aachen (Germany)
Skip the last 3 letters in the function name and you're there. :P
Pick up the PAL Scripting Reference for more infos.

Rule of Thumb: PAL/Delphi shortens all function names to varying degrees. If a natural sounding function isn't available look for similar sounding ones that have lost a few letters on the way :P

_________________
Benedikt Bauer - SVS (Spacial Volunteer Support)

We're offering custom PAL / PHP code and general SAM assistance at palscripts.com

My Project:
Send "Now Playing" from SAM to Twitter and/or Facebook | Sourcecode


Top
 Profile  
Reply with quote  
PostPosted: February 16th, 2019, 8:21 am 
Offline
Junior User
Junior User

Joined: September 7th, 2018, 9:00 am
Posts: 51
Mastacheata wrote:
Skip the last 3 letters in the function name and you're there. :P
Pick up the PAL Scripting Reference for more infos.

Rule of Thumb: PAL/Delphi shortens all function names to varying degrees. If a natural sounding function isn't available look for similar sounding ones that have lost a few letters on the way :P


Great :-) Thanks a million :-)


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 6 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 10 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group