Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem using the .netscanner option #61

Open
tpenninckx opened this issue Dec 23, 2024 · 0 comments
Open

Problem using the .netscanner option #61

tpenninckx opened this issue Dec 23, 2024 · 0 comments

Comments

@tpenninckx
Copy link

Hello,
I registered the dll ( RegAsm.exe -tlb -codebase c:\windows\system32\JSONFoxHelper.dll )

When I try to use the .netscanner = .t. option, I have an error : An IF | ELSE |ENDIF statement is missing

My code :
SET DEFAULT TO C:\dev\Foxpro\JSONFox-master
Do LocFile("JSONFox", "app")

  • Parse a string into an object.
    _Screen.Json.netScanner = .T.
    MyObj = _Screen.Json.Parse('{"foo": "bar"}')
    If _Screen.Json.lError
    ? _Screen.Json.LastErrorText
    ELSE
    ? MyObj.foo
    ENDIF

Am I missing something ?
Thank you,
Thierry Penninckx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant