Having trouble building an app

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

oldummy
Posts: 97
Joined: Mon Jun 13, 2016 3:21 pm

Re: Having trouble building an app

Post by oldummy » Sat Jan 02, 2021 8:33 pm

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.

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10099
Joined: Fri Feb 19, 2010 10:17 am

Re: Having trouble building an app

Post by richmond62 » Sat Jan 02, 2021 10:23 pm

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.

bogs
Posts: 5480
Joined: Sat Feb 25, 2017 10:45 pm

Re: Having trouble building an app

Post by bogs » Sat Jan 02, 2021 11:20 pm

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. :|
Image

oldummy
Posts: 97
Joined: Mon Jun 13, 2016 3:21 pm

Re: Having trouble building an app

Post by oldummy » Sun Jan 03, 2021 12:36 am

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.

SparkOut
Posts: 2946
Joined: Sun Sep 23, 2007 4:58 pm

Re: Having trouble building an app

Post by SparkOut » Sun Jan 03, 2021 12:47 am

oldummy wrote:
Sun Jan 03, 2021 12:36 am
If this gets any stranger I will just leave you folks alone.
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.

bogs
Posts: 5480
Joined: Sat Feb 25, 2017 10:45 pm

Re: Having trouble building an app

Post by bogs » Sun Jan 03, 2021 10:07 am

oldummy wrote:
Sun Jan 03, 2021 12:36 am
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.
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.

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).
Image

oldummy
Posts: 97
Joined: Mon Jun 13, 2016 3:21 pm

Re: Having trouble building an app

Post by oldummy » Sun Jan 03, 2021 1:48 pm

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.

Post Reply