Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Questions (Windows Mobile)
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Questions (Windows Mobile) Post any question regarding Basic4ppc.

Clock, Table & Textbox won't Display

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-30-2008, 02:16 PM
Junior Member
 
Join Date: Sep 2008
Posts: 29
Default Clock, Table & Textbox won't Display

I wrote a program to calculate my own NFL Point Spread. Using SQLite it loads two tables with every game played with score for the two teams selected. It then compares the two tables looking for commonalities: ie.DALvsPITvsGB::GBvsINDvsWAS links DAL & WAS.

When a link is found, it is added to a text box with scores and the link is removed. This continues until one or both the tables run out of data.

My problem, both tables and the text box remain blank UNTIL THE COMPARISON IS FINISHED! You can watch the sliders moving up and down both tables and the text box but no data is shown.

I tried adding a timer and displaying the time on the form every second but the timer stops when you press "GO" and does not display again until finished (8 to 10 seconds typical). Even if you enter the two teams in lower case, which is immediately converted to upper (tTeam.text = StrToUpper (tTeam.text) it does not show until finished.

I have the same problem with another program converting JAVA to PPC4 and trying to display progress messages (Searching for Class, Searching for Constructor, etc) with all messages displaying at the program end.

I've tried searching (here and internet) but I don't even know how to phrase the problem correctly. Can anyone please point me in the right direction.

Regards,

Ed Sharp
Reply With Quote
  #2 (permalink)  
Old 10-30-2008, 02:20 PM
Cableguy's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: N 41º11'30.30" W 8º39'46.60"
Posts: 2,344
Awards Showcase
Forum Contributer 
Total Awards: 1
Default

add the "DoEvents" keyword.
it will allow the screen to be "redrawn"
__________________
Paulo Gomes - Porto, Portugal - Living/Working in France
Mobile Device: Samsung Galaxy S, Android 2.3.4 CUstom ROM
Laptop: Toshiba NB100-130 (running on Win7Ultimate)

My Posts helped you? Consider Buying me a Porto Glass!
Reply With Quote
  #3 (permalink)  
Old 10-31-2008, 11:34 AM
Junior Member
 
Join Date: Sep 2008
Posts: 29
Default

Thanks Cableguy! Worked perfectly (but I sure needed a lot of them). I never looked at the keyword DoEvents thinking it was part of the Do...While... series. Searching DoEvents lead me to Threading and also a much greater understanding of PPC events.

Thanks again!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Railway station clock wolfgang Share Your Creations 9 12-05-2010 03:10 PM
Simple Chess Clock erzee Share Your Creations 1 07-25-2008 01:46 AM
Display images in table column chow Questions (Windows Mobile) 1 04-23-2008 11:50 AM
Icon near the clock vitramir Questions (Windows Mobile) 7 12-13-2007 03:14 PM
Landscape Night Clock Alex812 Share Your Creations 4 07-03-2007 02:18 PM


All times are GMT. The time now is 03:03 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0