Code: Select all
on mouseUp
put "Hello, LiveCode!" into field "output"
end mouseUp
I've tried refreshing the screen with `revRefreshWindow`, but that didn't help. Am I missing something? How can I fix this?
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Code: Select all
on mouseUp
put "Hello, LiveCode!" into field "output"
end mouseUp
double-check that the field "output" is on the same card as the button and is visible. If it still doesn't update, try using the full reference: put "Hello, LiveCode!" into field "output" of this cd to ensure it’s targeting the correct object.medarda wrote: ↑Thu Feb 20, 2025 5:16 amI'm working on a LiveCode project and running into a bug when trying to update a field dynamically. I have a button that, when clicked, should update `field "output"` with new text, but nothing happens. Here's my code inside the button:The field exists on the card, and its name matches exactly. However, the text doesn't update when I click the button.Code: Select all
on mouseUp put "Hello, LiveCode!" into field "output" end mouseUp
I've tried refreshing the screen with `revRefreshWindow`, but that didn't help. Am I missing something? How can I fix this?