Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit f854cbb

Browse files
Merge pull request #1623 from livecode/bugfix-19839
[Bug 19839] Declare vars in scripts needed for BMI tutorial
2 parents 674af66 + 4e5ab92 commit f854cbb

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

Toolset/palettes/tutorial/courses/First Run/tutorials/BMI Calculator/lessons/App Lesson.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1189,6 +1189,7 @@ step "Set Stack Script"
11891189
button:
11901190
script
11911191
function getBMI pHeight, pWeight
1192+
local tURL, tJSON, tArray
11921193
put "http://api.clinicalcalculator.org/bmi?" & \
11931194
"height_in_m=" & pHeight & "&weight_in_kg=" & pWeight into tURL
11941195

@@ -1372,6 +1373,7 @@ step "Set Calculator Card Script"
13721373
button:
13731374
script
13741375
command calculateBMI
1376+
local tHeight, tWeight, tBMI
13751377
put field "height" into tHeight
13761378
set the cHeight of this stack to tHeight
13771379

@@ -1790,6 +1792,7 @@ script
17901792
end preOpenCard
17911793

17921794
command calculateBMI
1795+
local tHeight, tWeight, tBMI
17931796
put field "height" into tHeight
17941797
set the cHeight of this stack to tHeight
17951798

notes/bugfix-19839.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Declare vars in scripts needed for BMI tutorial

0 commit comments

Comments
 (0)