Re: variable window not applying changes

2021-11-24 Thread James Hale via use-livecode
Double clicking on the line in the variable list only opens a single watcher 
window.

If I do this in my current project I make a change, click "apply" and the 
previous value (before I made the change) returns!

I have since made a test stack to see if the problem persists.
It doesn't.
Making a change in a variable of the test stack worked as expected.

So whatever is happening is confined to my current project.
Very strange.

Restarting LC does not solve the issue.
Right now it is just an inconvenience but I am intrigued as to what is present 
in my current project that makes this happen.

When I complete it I will test again and if still present send the stack to LC 
(in a bug report.) and see if Panos can illuminate me.

Thanks for the comments.

James

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


How to in LC for Desktop and the Web?

2021-11-24 Thread Paul Dupuis via use-livecode
I have an LC application that currently runs on Window and macOS, that I 
want to try to get running under LC 10 for the web. One characteristic 
of the app is that it opens a number of external stacks. On desktop 
platforms, these external stacks (outside the .EXE (windows) or .app 
package (macOS) are found in a folder at the same level as the installed 
application.


So if the app is installed at C:\Program Files\MyApp\MyApp.exe
The the folder containing the external stacks is at C"\Program 
Files\MyApp\FolderOfStacks\


I get the path of the mainstack and use it to construct the path to the 
folder


If I build for Web, is there some equivalent model for external stacks?

I get that I may need to have a:

switch platform()
  case "Win32"
  case "macOS"
 -- load external stacks the way I do now
 break
  case "web"
 -- load external stacks some other way
    break
end switch

but what is the web best practice for that 'some other way"? And is it 
different if I am testing locally vs hosting MyApp on a server?


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: variable window not applying changes

2021-11-24 Thread Niggemann, Bernd via use-livecode
> Craig Newman wrote
> @Bernd.
> " double-click on the icon in the varialble line:”
> 
> What icon? Do you mean the small box-with-arrow icon that appears when a 
> multi-line variable is present in the lower list?

Yes, that open rectangle with the right-upward pointing array

Kind regards
Bernd
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: variable window not applying changes

2021-11-24 Thread Craig Newman via use-livecode
@Bernd.

" double-click on the icon in the varialble line:”

What icon? Do you mean the small box-with-arrow icon that appears when a 
multi-line variable is present in the lower list?

@James. 

I am on a Mac, but have never had a change made in the external variable window 
(certainly a stack) that did not make a change that did not stick.

Craig

> On Nov 24, 2021, at 2:15 PM, Niggemann, Bernd via use-livecode 
>  wrote:
> 
>  double-click on the icon in the varialble line:

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: variable window not applying changes

2021-11-24 Thread Niggemann, Bernd via use-livecode
> James Hale wrote:

> I have been tracing a script and while stepping through notice an error in a 
> variable.
> I double clicked on the value in the variable list at the bottom of the SE 
> window and brought up the variable window.
> Made the  correction and clicked "apply".
> Nothing happened.
> 
> This used to work, didn't it??

This only happens to me if I accidentally double-click on the icon in the 
varialble line: then two windows pop up at the same location.
Changes in the topmost window and "applying" them do not change the variable. 
Apparently the lower window with the old values prevents that.

Kind regards
Bernd
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode