Hello guys,
I just want to ask how can I loop the data from my query? I just want it to display it to the message box instead of displaying into the datagrid.
I attached the file.
Any help will be very much appreciated.
Regards
-snop21
how can I loop the data from my query.. Help.!
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
how can I loop the data from my query.. Help.!
- Attachments
-
- QueryMoBilePick.livecode.zip
- (1.15 KiB) Downloaded 251 times
-
- VIP Livecode Opensource Backer
- Posts: 369
- Joined: Sun Dec 19, 2010 1:10 am
- Location: UK
- Contact:
Re: how can I loop the data from my query.. Help.!
Hi, snop21. Just change;
to
and the results will show in the message box
Code: Select all
set the dgText of group "Datagrid 1" to tdisplay
Code: Select all
put tdisplay into msg
LiveCode Development & Training : http://splash21.com
Re: how can I loop the data from my query.. Help.!
And that also works nicely on a Mac and Linux ![Cool 8)](./images/smilies/icon_cool.gif)
![Cool 8)](./images/smilies/icon_cool.gif)
Re: how can I loop the data from my query.. Help.!
Hi splash21 and Klaus,
Pardon me...
) It's not a message box actually that I want to display it.
)
I want to display it with the dialogbox "it's answer here in livecode"
from my query I want to loop to get the record from it and diplsay it to the dialogbox one by one.
repeat ----
answer " " -----> data from my query
end repeat
Don't know how to do it exactly..![Sad :(](./images/smilies/icon_sad.gif)
Need your help guys..
Regards
-snop21
Pardon me...
![Smile :)](./images/smilies/icon_smile.gif)
![Smile :)](./images/smilies/icon_smile.gif)
I want to display it with the dialogbox "it's answer here in livecode"
from my query I want to loop to get the record from it and diplsay it to the dialogbox one by one.
repeat ----
answer " " -----> data from my query
end repeat
Don't know how to do it exactly..
![Sad :(](./images/smilies/icon_sad.gif)
Need your help guys..
Regards
-snop21
-
- VIP Livecode Opensource Backer
- Posts: 369
- Joined: Sun Dec 19, 2010 1:10 am
- Location: UK
- Contact:
Re: how can I loop the data from my query.. Help.!
You've already got it!snop21 wrote:repeat ----
answer " " -----> data from my query
end repeat
![Razz :P](./images/smilies/icon_razz.gif)
Code: Select all
repeat for each line tRow in tDisplay
answer tRow
end repeat
LiveCode Development & Training : http://splash21.com