Startseite › Foren › Deutsches LiveCode-Forum › MobilePick Field › Antwort auf: MobilePick Field
Mai 1, 2019 um 17:09 Uhr
#14492
Bitte setze Deine eingefügten Skripte in die CODE Tags, dann bleibt die Formatierung erhalten!
Hm, so genau verstehe ich das auch nicht, aber mach doch mal folgendes:
Erstelle ein unsichtbares Feld und setzte dessen LOC irgendwo OFFSCREEN
Gib dem Feld dieses Skript:
command pick_das_mobile
local tIndex
global Daten3
// Show the picker
mobilePick field "Taetigkeit"
// The result is the line index of the selected item
put the result into tIndex
// Show the country with the chose index
#put line tIndex of field "ErsteHilfe" into field "EH1"
if tindex ="1" then
put "Errichtung" into Daten3
else if tindex = "2" then
put "Wartung" into Daten3
else if tindex ="3" then
put "Modifikation" into Daten3
end if
put Daten3 into fld"TK1"
end pick_das_mobile
Dann in deinem Button nur:
on mouseup
dispatch "pick_das_mobile" to fld "das erstellte unsichbare feld offscreen"
end mouseup
So habe ich das zumindest verstanden…