Please enable JavaScript to view this site.

thinBasic Help Manual

Navigation: ThinBASIC Modules > INet

INET_Internet_SetOption

Scroll Prev Top Next More

* * HELP & MANUAL PREMIUM PACK 4 DEMO VERSION * *

This documentation was styled with a demo skin from the Premium Pack 4 add-on for Help & Manual. The contents of the skin are encrypted and not configurable. You can only publish HM projects with this skin. You cannot edit it or change it.

This version is copyright and may only be used for local testing purposes. It may not be distributed.

Please purchase the full version of the Premium Pack to get the configurable skins and remove this notice. The package will also include the Toolbox configuration utility for Premium Pack skins.

 

Description

 

Sets an Internet option. on the specified handle.

 

Syntax

 

sRetValue = INET_Internet_SetOption(hInternet, lOption, sValue)

 

Returns

 

Function return a string that in many cases will be a valid number.

If function fails, it returns an empty string

 

Parameters

 

Name

Type

Optional

Meaning

hInternet

Number

No

The handle to the current Internet session. The handle must have been returned by a previous call to INET_Internet_Open.

lOption

Number

No

Internet option to be queried.

Supported options:

%INTERNET_OPTION_CONNECT_TIMEOUT

%INTERNET_OPTION_SEND_TIMEOUT

%INTERNET_OPTION_CONTROL_SEND_TIMEOUT

%INTERNET_OPTION_RECEIVE_TIMEOUT

%INTERNET_OPTION_CONTROL_RECEIVE_TIMEOUT

%INTERNET_OPTION_DATA_SEND_TIMEOUT

%INTERNET_OPTION_DATA_RECEIVE_TIMEOUT

 

sValue

String

No

Option setting.
This parameter is a string, in many cases passed value are expected as binary numbers: thinBasic will take care to transform string into the necessary type depending on the lOption selected.

 

Remarks

 

Restrictions

 

See also

 

Examples

 

 

Created with Help+Manual 8 and styled with Premium Pack Version 4 © by EC Software