Having trouble building an app
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Re: Having trouble building an app
That works fine in the dev environment. I opened the stack and pasted the script in the button.
When I accessed that stack via the executable, and hit that button, the same text came up again.
And for some odd reason when I select and copy the text in that field it only shows this part when I paste it:
"ask plain"
instead of:
ask plainWhat is the reading?false---1/2/21---2:27 PM
I think I may be cursed.
When I accessed that stack via the executable, and hit that button, the same text came up again.
And for some odd reason when I select and copy the text in that field it only shows this part when I paste it:
"ask plain"
instead of:
ask plainWhat is the reading?false---1/2/21---2:27 PM
I think I may be cursed.
-
- Livecode Opensource Backer
- Posts: 10099
- Joined: Fri Feb 19, 2010 10:17 am
Re: Having trouble building an app
What on earth does "ask plain" mean?
Your pain maybe as plain as that.
I refuse to believe that the word plain is coming from nowhere.
Your pain maybe as plain as that.
I refuse to believe that the word plain is coming from nowhere.
Re: Having trouble building an app
Well, not sure what is going on with your situation, I wasn't able to reproduce it here on Win 10 even though I copied your script directly and pasted it as is directly into the IDE. 


Re: Having trouble building an app
I have no idea. However, I guess a lot and just rebuilt the application stack in the manner you advised before on a hunch and it works again. I had opened the record stack and edited the button script. I assume(yes, I know) that if I make any more edits on the stack I keep the records in I will again have to rebuild the thing again. I guess the oddest thing here to me is why did the copy and paste go so awry.
Thanks.
If this gets any stranger I will just leave you folks alone.
Thanks.
If this gets any stranger I will just leave you folks alone.
Re: Having trouble building an app
Oh no you don't!
This is intriguing. I have popcorn and everything.
If I can think of anything apart from just being a spectator, then I will chime in, but in the meantime please keep posting. It's helpful to all of us to see how things turn out, especially when it gets strange. Maybe a bit more clueing will help to get to the "aha" moment, or uncover something else that needs to be bug reported.
Re: Having trouble building an app
Actually, not so much. IF all you are doing is editing the record stack, you only have to put it in the program (standalones) data folder.oldummy wrote: ↑Sun Jan 03, 2021 12:36 amI have no idea. However, I guess a lot and just rebuilt the application stack in the manner you advised before on a hunch and it works again. I had opened the record stack and edited the button script. I assume(yes, I know) that if I make any more edits on the stack I keep the records in I will again have to rebuild the thing again. I guess the oddest thing here to me is why did the copy and paste go so awry.
Thanks.
If this gets any stranger I will just leave you folks alone.
What I tend to do when working with a program in this manner is to save a copy of the working file above to a separate folder, and change the extension to the date so I know which was which (I keep about 3 files like that, but whatever makes you feel good works).
As Long as the standalone doesn't need a change, you never need to recompile it (unless you change the name of the stack in the data folder).

Re: Having trouble building an app
As Long as the standalone doesn't need a change, you never need to recompile it (unless you change the name of the stack in the data folder).
That was my thought as well.
I went through every step in trying to duplicate this behavior.
made stack red
added btn scripted "go stack Green" saved and closed "Red"
made stack "Green"
made scroll fld "record"
made btn "Enter Data" btn script with original ampersand mistakes as follows:
on mouseUp
ask "What is the reading?"
put it & "---" &the date&"---"& the time & cr after fld "record"
end mouseUp
Built the app
All works fine even with my original btn script.
opened "Green" in the dev, replaced my script with Richmond's
saved and quit
opened "Green" stack via the app file
all still works fine.
I could not duplicate it either
Ghostezes, I suppose.
The copy/paste thing seems like it had to be a Windows burp.
Thank you all for your time and trouble again.
That was my thought as well.
I went through every step in trying to duplicate this behavior.
made stack red
added btn scripted "go stack Green" saved and closed "Red"
made stack "Green"
made scroll fld "record"
made btn "Enter Data" btn script with original ampersand mistakes as follows:
on mouseUp
ask "What is the reading?"
put it & "---" &the date&"---"& the time & cr after fld "record"
end mouseUp
Built the app
All works fine even with my original btn script.
opened "Green" in the dev, replaced my script with Richmond's
saved and quit
opened "Green" stack via the app file
all still works fine.
I could not duplicate it either
Ghostezes, I suppose.
The copy/paste thing seems like it had to be a Windows burp.
Thank you all for your time and trouble again.