Hi Dave,
I am a little bit lost...

But i think it is because of me as i didn't explain well what i wanted from the beginning...
So, i will show you my card...All the objects i have there and i will also put you my code.
But first i will try to explain you what i am trying to do and what i have...
So, in this card i need the user will fill some data. And this data is recollected in 10 different text fields.
And as Klaus told me i made one fake 'text field with rounded corners"...So i have 10 transparent text fields above 10 'rounded corner images'.
And i have one invisible DataGrid that is filled with different data (depending on the button that the user pressed before to enter in this card).
And in the bottom i have also two buttons. in the left side,one to add the information the user filled and in the right side one button to go back.
And i told you that i think that i didn't explain well what i wanted from my first post, because you told me that i don't need to include a LiveCode field...
And in fact my problem is that in the last four text fields i can't see what is written because of the keyboard...
But i need these text fields...
So this all the code i have in my card:
Code: Select all
local sDatabaseID
local tDatabasePath, tDatabaseID
global ruta
local sinputId
on opencard
if environment() = "mobile" then
mobileControlCreate "input"
put the result into sinputID
mobileControlSet sinputID, "rect", "38,726,748,916"
mobileControlSet sinputID, "visible", "true"
mobileControlSet sinputID, "opaque", "true"
end if
end opencard
on keyboardActivated
mobileControlSet sinputID, "rect", "38,226,748,416"
set the rect of graphic "rectangle" to "38,226,748,416"
end keyboardActivated
on keyboardDeactivated
mobileControlSet sinputID, "rect", "38,726,748,916"
set the rect of graphic "rectangle" to "38,726,748,916"
end keyboardDeactivated
on ocultarBotonesAnadir numeroOcultar, nombreDeTabla
put numeroOcultar into i
put 35000 into identificadorImagen
add i to identificadorImagen
repeat while i< 11
put "TxtAnadir" & nombreDeTabla & i into nombreTxtAnadir
set the visible of field nombreTxtAnadir of card "card2" to false
set the visible of image id identificadorImagen to false
add 1 to i
add 1 to identificadorImagen
end repeat
end ocultarBotonesAnadir
on mostrarBotonesAnadir numeroMostrar, nombreDeTabla
put 1 into i
put 35000 into identificadorImagen
repeat while i<=numeroMostrar
add 1 to identificadorImagen
put "TxtAnadir" & nombreDeTabla & i into nombreTxtAnadir
set the visible of field nombreTxtAnadir of card "card2" to true
set the visible of image id identificadorImagen to true
add 1 to i
end repeat
end mostrarBotonesAnadir
on MostrarParrilla DGNombre, nombreTab
set the dgData of group DGNombre of card "card1" to empty
databaseConnect
if tDatabaseID is an integer then
put "SELECT * FROM " & nombreTab into query
put revQueryDatabase( tDatabaseID, query ) into theCursor
if theCursor is an integer then
ConvertSQLCursorToArray theCursor, theDataGridArray
put the result into theError
if theError is empty then
set the dgData of group DGNombre of card "card1" to theDataGridArray
end if
revCloseCursor theCursor
end if
revCloseDatabase tDatabaseID
else
answer "Error connecting to the database:" && tDatabaseID & "."
end if
end MostrarParrilla
command ConvertSQLCursorToArray pCursor, @pOutArrayA
local i
local theFields
local theError
put revDatabaseColumnNames(pCursor) into theFields
if theFields begins with "revdberr," then
put item 2 to -1 of theFields into theError
end if
if theError is empty then
put 0 into i
repeat until revQueryIsAtEnd(pCursor)
add 1 to i
repeat for each item theField in theFields
put revDatabaseColumnNamed(pCursor, theField) into pOutArrayA[i][ theField ]
end repeat
revMoveToNextRecord pCursor
end repeat
end if
return theError
end ConvertSQLCursorToArray
on mostrarDataGrid valorMostrar, nombreDataGrid, nombreCarta
if valorMostrar is 0 then
set the vis of grp nombreDataGrid of card nombreCarta to false
else
set the vis of grp nombreDataGrid of card nombreCarta to true
end if
end mostrarDataGrid
command databaseConnect
put revOpenDatabase ("sqlite",ruta,,,,) into tDatabaseID
end databaseConnect
And i attached one screenshot of my card too.
So, since i began this thread i was looking for one solution to show what is written in the bottom text fields as they are hidden by the keyboard when i try to fill the data that i have to recollect with these 10 text fields.
I hope i expressed myself better...
Regards.