PDA

View Full Version : Download file - host address



NewsArchive
07-23-2008, 02:01 AM
Hi Friedrich,

I've only had to do this couple of times but it trips me up every time.

"Host Address

[in] String that specifies the full URL to the file you want to download.
Do not include the http://. in the URL path. "

Could you add some check to see IF the http:// is included and then prompt a
compiler warning or something. Everywhere I need to use an address I'm
allowed to use the http:// so it's not intuitive at all to not use it and
have no warning

If Instring('http:',Lower(URL),1,1)
Message('DO NOT INCLUDE the HTTP: you daft idiot!','READ THE F...
MANUAL!',ICON:HAND)
End

<g>

Or alternatively parse it off if it's included:) Would have saved me
considerable time every time I've had to use this;)

--
Arnor Baldvinsson
Icetips Creative, Inc

NewsArchive
07-24-2008, 01:31 AM
Hi Arnor,

> I've only had to do this couple of times but it trips me up every time.
>
> "Host Address
>
> [in] String that specifies the full URL to the file you want to download.
> Do not include the http://. in the URL path. "
>
> Could you add some check to see IF the http:// is included and then prompt
> a compiler warning or something. Everywhere I need to use an address I'm
> allowed to use the http:// so it's not intuitive at all to not use it and
> have no warning
>
> If Instring('http:',Lower(URL),1,1)
> Message('DO NOT INCLUDE the HTTP: you daft idiot!','READ THE F...
> MANUAL!',ICON:HAND)
> End
>
> <g>
>
> Or alternatively parse it off if it's included:) Would have saved me
> considerable time every time I've had to use this;)

Already done for SB7, but I'll also port that code back to SB6.

Thanks,
Friedrich

--
Friedrich Linder
Lindersoft
www.lindersoft.com
+1.954.252.3910

"point. click. ship" - that's SetupBuilder
Create Windows Vista ready installations in minutes

-- Official Comodo Code Signing and SSL Certificate Partner

NewsArchive
07-24-2008, 01:31 AM
Hi Friedrich,

>> Or alternatively parse it off if it's included:) Would have saved me
>> considerable time every time I've had to use this;)
>
> Already done for SB7, but I'll also port that code back to SB6.

Cool:) I do this maybe once a year and each time it bites me - I know, I'm
slow!<bg>

--
ArnĂ³r Baldvinsson - Icetips Creative, Inc.
www.icetips.com - www.buildautomator.com

Subscribe to information from Icetips.com:
http://www.icetips.com/subscribe.php

NewsArchive
07-25-2008, 01:34 AM
>> Already done for SB7, but I'll also port that code back to SB6.
>
> Cool:) I do this maybe once a year and each time it bites me - I know,
> I'm slow!<bg>

<BG> ;-)

Friedrich