returning variables F#(canopy) easiest way -
member x.logovani(window : string) = let weburl = ref "" let actwindow = ref "" "login" &&& fun _ -> browser.switchto().window(window) |> ignore weburl := currenturl() actwindow := browser.currentwindowhandle return {|weburl,actwindow|} end hello question how pass weburl , actwindoweasiest way, because way of return not working. want call function logovani pass function var window , recieved weburl , actwindow
so fixed this
member x.logovani(window : string) : string ref = let weburl = ref "" browser.switchto().window(window) |> ignore weburl := currenturl() weburl end
Comments
Post a Comment