Skip to main content
Question

callx

  • December 22, 2022
  • 2 replies
  • 2 views

Stefano Gallotta

Hi all

Simple question here on callx - D3 on Windows:



I'm trying to do a simple "catch" whenever someone edits a file.

So, I write a simple subroutine and compile it and flash compile with 'o' option (per documentation)

I add the call to attribute 8 in the dict entry of the file:


and proceed to ed(it) an item expecting my subroutine to trigger - but it doesn't

WHY?

Is there anything I'm missing?

The subroutine is: (really complex :))


I'll just leave this here for constructive comment - Thanks

Stefano

2 replies

Chris Macadam

Hi all

Simple question here on callx - D3 on Windows:



I'm trying to do a simple "catch" whenever someone edits a file.

So, I write a simple subroutine and compile it and flash compile with 'o' option (per documentation)

I add the call to attribute 8 in the dict entry of the file:


and proceed to ed(it) an item expecting my subroutine to trigger - but it doesn't

WHY?

Is there anything I'm missing?

The subroutine is: (really complex :))


I'll just leave this here for constructive comment - Thanks

Stefano

Hi Stefano,

Four things I would do:
1) Use the full path for the CALLX --> callx account,bp_file, sg.test  - changing account and bp_file to the appropriate entries
2) Add an '(item)' at the end of the first line of your program.
3) Log off and log back on again.
4) Try the test again.

Cheers.

Stefano Gallotta
  • Author
  • Participating Frequently
  • December 23, 2022

Hi all

Simple question here on callx - D3 on Windows:



I'm trying to do a simple "catch" whenever someone edits a file.

So, I write a simple subroutine and compile it and flash compile with 'o' option (per documentation)

I add the call to attribute 8 in the dict entry of the file:


and proceed to ed(it) an item expecting my subroutine to trigger - but it doesn't

WHY?

Is there anything I'm missing?

The subroutine is: (really complex :))


I'll just leave this here for constructive comment - Thanks

Stefano

Thanks @Chris Macadam

Logoff and Login did the trick :)

We sometimes forget the cache ​memory (?)