Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
VFP Web automation and form filling
#13
(2023-11-24, 19:07:01)wila Wrote:
(2023-11-24, 18:39:33)carlos@agpsoftware.com Wrote: Hi.
Sorry. Why this text '() =>' before brackets?
It's beeing part of the  lcjScript variable.
I don't understand that.

Hello Carlos,

Don't be confused, it's a short hand notation detail from javascript. 
It's called an arrow function.

The runAnonymousFunction depends on something that is called anonymous functions in javascript.
So basically a function without a name.
You can still pass variables though, that's why the () is there, so you can pass variables in there. (Click on the runAnonymousFunction link to see an example)

More info about that can be read here:
https://www.w3schools.com/js/js_function_definition.asp
and here:
https://developer.mozilla.org/en-US/docs.../Functions
direct link in MDN:
https://developer.mozilla.org/en-US/docs..._functions

--
Wil

I see. Thanks
Reply


Messages In This Thread
VFP Web automation and form filling - by ozcan - 2023-11-07, 12:38:29
RE: VFP Web automation and form filling - by wila - 2023-11-07, 18:26:06
RE: VFP Web automation and form filling - by wila - 2023-11-24, 19:07:01
RE: VFP Web automation and form filling - by carlos@agpsoftware.com - 2023-11-27, 11:11:59
RE: VFP Web automation and form filling - by wila - 2023-11-28, 11:50:05
RE: VFP Web automation and form filling - by wila - 2023-11-08, 15:05:52
RE: VFP Web automation and form filling - by wila - 2023-11-10, 22:04:34
RE: VFP Web automation and form filling - by wila - 2023-11-13, 12:43:43
RE: VFP Web automation and form filling - by wila - 2023-11-13, 15:39:07

Forum Jump:


Users browsing this thread: 2 Guest(s)