This is Interesting
Posted: Wed May 22, 2013 10:05 am
Can anyone figure out why in the attached stack this script grabs the phone number out of the third column of the data grid in the IDE but not in the simulator? The funny thing is it was working both in the simulator and on my phone devise making phone calls earlier.
Weird!
Dave
on mouseUp
put the dgHilitedLines of group "mygrid" into theLine
put the dgDataOfLine[theLine] of group "mygrid" into theDataA
put theDataA[column3] into tValue
answer "Would you like to call" && tValue && "?" with "Yes" or "Cancel"
if it is "Yes" then
replace "-" with "" in tValue
answer tValue
put "tel:" & tValue into tMYNumber
launch url tMYNumber
end if
end mouseUp
Weird!
Dave
on mouseUp
put the dgHilitedLines of group "mygrid" into theLine
put the dgDataOfLine[theLine] of group "mygrid" into theDataA
put theDataA[column3] into tValue
answer "Would you like to call" && tValue && "?" with "Yes" or "Cancel"
if it is "Yes" then
replace "-" with "" in tValue
answer tValue
put "tel:" & tValue into tMYNumber
launch url tMYNumber
end if
end mouseUp