Jump to content

Passing an URL like an argument of a function


lockito
 Share

Go to solution Solved by michaelslamet,

Recommended Posts

Hi!!

I want to create a function that recieves an URL like argument.

I created the function in this way:

Func test(Const $link1)

And i tried to call the function in these 2 ways:

1) test("https://www.google.com")

2) Call("test", "https://www.google.com")

The script compiles but in execution it returns an error on the callings of the function

Can anybody help me?

Link to comment
Share on other sites

The code you wrote here is not failing something else is.

_Test("http://www.autoitscript.com/forum/topic/157061-passing-an-url-like-an-argument-of-a-function/")

Func _Test(Const $Link)
    MsgBox(0,"URL", $Link)
EndFunc

AutoIt Absolute Beginners    Require a serial    Pause Script    Video Tutorials by Morthawt   ipify 

Monkey's are, like, natures humans.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...