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.

Duplicate ghost form

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-22-2009, 05:12 PM
Junior Member
 
Join Date: Aug 2009
Posts: 30
Angry Duplicate ghost form

I have a form that keeps appearing even though I have deleted it. Any ideas as to what may be causing this?
Reply With Quote
  #2 (permalink)  
Old 08-22-2009, 05:19 PM
Basic4ppc Veteran
 
Join Date: May 2008
Location: Newcastle Upon Tyne - England
Posts: 271
Awards Showcase
Beta Tester 
Total Awards: 1
Default

If you post your *.sbp file we'll have a look.
Reply With Quote
  #3 (permalink)  
Old 08-22-2009, 05:22 PM
klaus's Avatar
Basic4ppc Expert
 
Join Date: Oct 2007
Location: Fully, Switzerland
Posts: 4,463
Awards Showcase
Forum Contributer Beta Tester Competition Winner 
Total Awards: 3
Default

Could you be more precise on what you have done and where.
Desktop IDE, device IDE ?
Do you have modules ?
Source code example ?

Best regards.
__________________
Klaus
Switzerland

Beginner's Guide / User's Guide
Reply With Quote
  #4 (permalink)  
Old 08-22-2009, 05:23 PM
Junior Member
 
Join Date: Aug 2009
Posts: 30
Default

I'm a newbie. What is that?
Reply With Quote
  #5 (permalink)  
Old 08-22-2009, 05:25 PM
Junior Member
 
Join Date: Aug 2009
Posts: 30
Default

I think the problem began when I hid a module. Now I can't see it anymore. I think the form exists in that module.
Reply With Quote
  #6 (permalink)  
Old 08-22-2009, 05:26 PM
Junior Member
 
Join Date: Aug 2009
Posts: 30
Default

This is the entire code:

Sub Globals
'Declare the global variables here.
End Sub

Sub App_Start
Form101.Show
Time1.Text=DateM & "/" & DateD & "/" & DateY & " " & TimeH & ":" & TimeM & ":" & TimeS
Sub btnFav_Click
AddTable ("Form101", "Table10", 80, 5, 140, 120)
Table10.AddCol (cString, "Item", 200)
Table10.AddCol (cString, "Carbs", 50)
Table10.LoadCSV ("FoodDat.csv", ",", False, False)
AddTable ("Form101", "Table20", 80, 160, 140, 100)
Table20.AddCol (cString, "Selected_Items", 100)
Table20.AddCol (cString, "Carbs", 50)
End Sub
Sub btnSelect_Click
Table20.AddRow (Table10.Cell ("Item", Table10.SelectedRow),Table10.Cell ("Carbs", Table10.SelectedRow))
If Table20.RowCount=1 Then
label1.Text=Table20.Cell ("Carbs", 0)
Else If Table20.RowCount=2 Then
label1.Text=Table20.Cell ("Carbs", 0)+Table20.Cell ("Carbs", 1)
Else If Table20.RowCount=3 Then
label1.Text=Table20.Cell ("Carbs", 0)+Table20.Cell ("Carbs", 1)+Table20.Cell ("Carbs", 2)
Else If Table20.RowCount=4 Then
label1.Text=Table20.Cell ("Carbs", 0)+Table20.Cell ("Carbs", 1)+Table20.Cell ("Carbs", 2)+Table20.Cell ("Carbs", 3)
Else If Table20.RowCount=5 Then
label1.Text=Table20.Cell ("Carbs", 0)+Table20.Cell ("Carbs", 1)+Table20.Cell ("Carbs", 2)+Table20.Cell ("Carbs", 3)+Table20.Cell ("Carbs", 4)
Else If Table20.RowCount=6 Then
label1.Text=Table20.Cell ("Carbs", 0)+Table20.Cell ("Carbs", 1)+Table20.Cell ("Carbs", 2)+Table20.Cell ("Carbs", 3)+Table20.Cell ("Carbs", 4)+Table20.Cell ("Carbs", 5)
Else If Table20.RowCount=7 Then
label1.Text=Table20.Cell ("Carbs", 0)+Table20.Cell ("Carbs", 1)+Table20.Cell ("Carbs", 2)+Table20.Cell ("Carbs", 3)+Table20.Cell ("Carbs", 4)+Table20.Cell ("Carbs", 5)+Table20.Cell ("Carbs", 6)
Else If Table20.RowCount=8 Then
label1.Text=Table20.Cell ("Carbs", 0)+Table20.Cell ("Carbs", 1)+Table20.Cell ("Carbs", 2)+Table20.Cell ("Carbs", 3)+Table20.Cell ("Carbs", 4)+Table20.Cell ("Carbs", 5)+Table20.Cell ("Carbs", 6)+Table20.Cell ("Carbs", 7)
Else If Table20.RowCount=9 Then
label1.Text=Table20.Cell ("Carbs", 0)+Table20.Cell ("Carbs", 1)+Table20.Cell ("Carbs", 2)+Table20.Cell ("Carbs", 3)+Table20.Cell ("Carbs", 4)+Table20.Cell ("Carbs", 5)+Table20.Cell ("Carbs", 6)+Table20.Cell ("Carbs", 7)+Table20.Cell ("Carbs", 8)
Else If Table20.RowCount=10 Then
label1.Text=Table20.Cell ("Carbs", 0)+Table20.Cell ("Carbs", 1)+Table20.Cell ("Carbs", 2)+Table20.Cell ("Carbs", 3)+Table20.Cell ("Carbs", 4)+Table20.Cell ("Carbs", 5)+Table20.Cell ("Carbs", 6)+Table20.Cell ("Carbs", 7)+Table20.Cell ("Carbs", 8)+Table20.Cell ("Carbs", 9)
Else If Table20.RowCount=11 Then
label1.Text=Table20.Cell ("Carbs", 0)+Table20.Cell ("Carbs", 1)+Table20.Cell ("Carbs", 2)+Table20.Cell ("Carbs", 3)+Table20.Cell ("Carbs", 4)+Table20.Cell ("Carbs", 5)+Table20.Cell ("Carbs", 6)+Table20.Cell ("Carbs", 7)+Table20.Cell ("Carbs", 8)+Table20.Cell ("Carbs", 9)+Table20.Cell ("Carbs", 10)
Else If Table20.RowCount=12 Then
label1.Text=Table20.Cell ("Carbs", 0)+Table20.Cell ("Carbs", 1)+Table20.Cell ("Carbs", 2)+Table20.Cell ("Carbs", 3)+Table20.Cell ("Carbs", 4)+Table20.Cell ("Carbs", 5)+Table20.Cell ("Carbs", 6)+Table20.Cell ("Carbs", 7)+Table20.Cell ("Carbs", 8)+Table20.Cell ("Carbs", 9)+Table20.Cell ("Carbs", 10)+Table20.Cell ("Carbs", 11)
Else If Table20.RowCount=13 Then
label1.Text=Table20.Cell ("Carbs", 0)+Table20.Cell ("Carbs", 1)+Table20.Cell ("Carbs", 2)+Table20.Cell ("Carbs", 3)+Table20.Cell ("Carbs", 4)+Table20.Cell ("Carbs", 5)+Table20.Cell ("Carbs", 6)+Table20.Cell ("Carbs", 7)+Table20.Cell ("Carbs", 8)+Table20.Cell ("Carbs", 9)+Table20.Cell ("Carbs", 10)+Table20.Cell ("Carbs", 11)+Table20.Cell ("Carbs", 12)
Else If Table20.RowCount=14 Then
label1.Text=Table20.Cell ("Carbs", 0)+Table20.Cell ("Carbs", 1)+Table20.Cell ("Carbs", 2)+Table20.Cell ("Carbs", 3)+Table20.Cell ("Carbs", 4)+Table20.Cell ("Carbs", 5)+Table20.Cell ("Carbs", 6)+Table20.Cell ("Carbs", 7)+Table20.Cell ("Carbs", 8)+Table20.Cell ("Carbs", 9)+Table20.Cell ("Carbs", 10)+Table20.Cell ("Carbs", 11)+Table20.Cell ("Carbs", 12)+Table20.Cell ("Carbs", 13)
Else If Table20.RowCount=15 Then
label1.Text=Table20.Cell ("Carbs", 0)+Table20.Cell ("Carbs", 1)+Table20.Cell ("Carbs", 2)+Table20.Cell ("Carbs", 3)+Table20.Cell ("Carbs", 4)+Table20.Cell ("Carbs", 5)+Table20.Cell ("Carbs", 6)+Table20.Cell ("Carbs", 7)+Table20.Cell ("Carbs", 8)+Table20.Cell ("Carbs", 9)+Table20.Cell ("Carbs", 10)+Table20.Cell ("Carbs", 11)+Table20.Cell ("Carbs", 12)+Table20.Cell ("Carbs", 13)+Table20.Cell ("Carbs", 14)
End If
label2.Text=label1.Text/9
End Sub
Sub btnRemove_Click
If Table20.RowCount=0 Then label1.Text =0 Else Table20.RemoveRow (Table20.SelectedRow)

If Table20.RowCount=1 Then
label1.Text=Table20.Cell ("Carbs", 0)
Else If Table20.RowCount=2 Then
label1.Text=Table20.Cell ("Carbs", 0)+Table20.Cell ("Carbs", 1)
Else If Table20.RowCount=3 Then
label1.Text=Table20.Cell ("Carbs", 0)+Table20.Cell ("Carbs", 1)+Table20.Cell ("Carbs", 2)
Else If Table20.RowCount=4 Then
label1.Text=Table20.Cell ("Carbs", 0)+Table20.Cell ("Carbs", 1)+Table20.Cell ("Carbs", 2)+Table20.Cell ("Carbs", 3)
Else If Table20.RowCount=5 Then
label1.Text=Table20.Cell ("Carbs", 0)+Table20.Cell ("Carbs", 1)+Table20.Cell ("Carbs", 2)+Table20.Cell ("Carbs", 3)+Table20.Cell ("Carbs", 4)
Else If Table20.RowCount=6 Then
label1.Text=Table20.Cell ("Carbs", 0)+Table20.Cell ("Carbs", 1)+Table20.Cell ("Carbs", 2)+Table20.Cell ("Carbs", 3)+Table20.Cell ("Carbs", 4)+Table20.Cell ("Carbs", 5)
Else If Table20.RowCount=7 Then
label1.Text=Table20.Cell ("Carbs", 0)+Table20.Cell ("Carbs", 1)+Table20.Cell ("Carbs", 2)+Table20.Cell ("Carbs", 3)+Table20.Cell ("Carbs", 4)+Table20.Cell ("Carbs", 5)+Table20.Cell ("Carbs", 6)
Else If Table20.RowCount=8 Then
label1.Text=Table20.Cell ("Carbs", 0)+Table20.Cell ("Carbs", 1)+Table20.Cell ("Carbs", 2)+Table20.Cell ("Carbs", 3)+Table20.Cell ("Carbs", 4)+Table20.Cell ("Carbs", 5)+Table20.Cell ("Carbs", 6)+Table20.Cell ("Carbs", 7)
Else If Table20.RowCount=9 Then
label1.Text=Table20.Cell ("Carbs", 0)+Table20.Cell ("Carbs", 1)+Table20.Cell ("Carbs", 2)+Table20.Cell ("Carbs", 3)+Table20.Cell ("Carbs", 4)+Table20.Cell ("Carbs", 5)+Table20.Cell ("Carbs", 6)+Table20.Cell ("Carbs", 7)+Table20.Cell ("Carbs", 8)
Else If Table20.RowCount=10 Then
label1.Text=Table20.Cell ("Carbs", 0)+Table20.Cell ("Carbs", 1)+Table20.Cell ("Carbs", 2)+Table20.Cell ("Carbs", 3)+Table20.Cell ("Carbs", 4)+Table20.Cell ("Carbs", 5)+Table20.Cell ("Carbs", 6)+Table20.Cell ("Carbs", 7)+Table20.Cell ("Carbs", 8)+Table20.Cell ("Carbs", 9)
Else If Table20.RowCount=11 Then
label1.Text=Table20.Cell ("Carbs", 0)+Table20.Cell ("Carbs", 1)+Table20.Cell ("Carbs", 2)+Table20.Cell ("Carbs", 3)+Table20.Cell ("Carbs", 4)+Table20.Cell ("Carbs", 5)+Table20.Cell ("Carbs", 6)+Table20.Cell ("Carbs", 7)+Table20.Cell ("Carbs", 8)+Table20.Cell ("Carbs", 9)+Table20.Cell ("Carbs", 10)
Else If Table20.RowCount=12 Then
label1.Text=Table20.Cell ("Carbs", 0)+Table20.Cell ("Carbs", 1)+Table20.Cell ("Carbs", 2)+Table20.Cell ("Carbs", 3)+Table20.Cell ("Carbs", 4)+Table20.Cell ("Carbs", 5)+Table20.Cell ("Carbs", 6)+Table20.Cell ("Carbs", 7)+Table20.Cell ("Carbs", 8)+Table20.Cell ("Carbs", 9)+Table20.Cell ("Carbs", 10)+Table20.Cell ("Carbs", 11)
Else If Table20.RowCount=13 Then
label1.Text=Table20.Cell ("Carbs", 0)+Table20.Cell ("Carbs", 1)+Table20.Cell ("Carbs", 2)+Table20.Cell ("Carbs", 3)+Table20.Cell ("Carbs", 4)+Table20.Cell ("Carbs", 5)+Table20.Cell ("Carbs", 6)+Table20.Cell ("Carbs", 7)+Table20.Cell ("Carbs", 8)+Table20.Cell ("Carbs", 9)+Table20.Cell ("Carbs", 10)+Table20.Cell ("Carbs", 11)+Table20.Cell ("Carbs", 12)
Else If Table20.RowCount=14 Then
label1.Text=Table20.Cell ("Carbs", 0)+Table20.Cell ("Carbs", 1)+Table20.Cell ("Carbs", 2)+Table20.Cell ("Carbs", 3)+Table20.Cell ("Carbs", 4)+Table20.Cell ("Carbs", 5)+Table20.Cell ("Carbs", 6)+Table20.Cell ("Carbs", 7)+Table20.Cell ("Carbs", 8)+Table20.Cell ("Carbs", 9)+Table20.Cell ("Carbs", 10)+Table20.Cell ("Carbs", 11)+Table20.Cell ("Carbs", 12)+Table20.Cell ("Carbs", 13)
Else If Table20.RowCount=15 Then
label1.Text=Table20.Cell ("Carbs", 0)+Table20.Cell ("Carbs", 1)+Table20.Cell ("Carbs", 2)+Table20.Cell ("Carbs", 3)+Table20.Cell ("Carbs", 4)+Table20.Cell ("Carbs", 5)+Table20.Cell ("Carbs", 6)+Table20.Cell ("Carbs", 7)+Table20.Cell ("Carbs", 8)+Table20.Cell ("Carbs", 9)+Table20.Cell ("Carbs", 10)+Table20.Cell ("Carbs", 11)+Table20.Cell ("Carbs", 12)+Table20.Cell ("Carbs", 13)+Table20.Cell ("Carbs", 14)
End If
label2.Text=label1.Text/9
label3.Text=txtBG.text
End Sub


Sub btnLog_Click

AddTable ("Form12", "Table22", 10, 5, 200, 120)
Table22.LoadCSV ("log.csv", ",", False, True)
Table22.AddRow (time1.text,Table20.Cell ("Selected_Items", Table20.SelectedRow),label1.Text,label2.Text,txtbg .text)
Table22.tablesort("column1 DESC")
Table22.SaveCSV ("Log.csv", "," ,False)
Msgbox("Entry Saved.")
Form101.Close
End Sub





Sub btnSave_Click
AddTable ("Form12", "Table22", 10, 5, 200, 120)
Table22.LoadCSV ("FoodDat.csv", ",", False, True)
Table22.AddRow (FoodName.Text,label1.Text)
Table22.tablesort("column1 DESC")
Table22.SaveCSV ("FoodDat.csv", "," ,False)
Msgbox("Entry Saved.")
End Sub

Sub btnFood_Click
AddTable ("Form101", "Table10", 80, 5, 140, 120)
Table10.AddCol (cString, "Item", 200)
Table10.AddCol (cString, "Carbs", 50)
Table10.LoadCSV ("FoodData.csv", ",", False, False)
AddTable ("Form101", "Table20", 80, 160, 140, 100)
Table20.AddCol (cString, "Selected_Items", 100)
Table20.AddCol (cString, "Carbs", 50)
End Sub

Sub btnLow_Click
AddTable ("Form12", "Table22", 10, 5, 200, 120)
Table22.LoadCSV ("log.csv", ",", False, True)
Table22.AddRow (time1.text,"LOW BLOOD GLUCOSE","","",txtbg.text)
Table22.tablesort("column1 DESC")
Table22.SaveCSV ("Log.csv", "," ,False)
Msgbox("Entry Saved.")
End Sub
Reply With Quote
  #7 (permalink)  
Old 08-22-2009, 06:01 PM
klaus's Avatar
Basic4ppc Expert
 
Join Date: Oct 2007
Location: Fully, Switzerland
Posts: 4,463
Awards Showcase
Forum Contributer Beta Tester Competition Winner 
Total Awards: 3
Default

Sorry but you must post your sbp file!
Just the code in the post is not enough to check what happens.

Best regards.
__________________
Klaus
Switzerland

Beginner's Guide / User's Guide
Reply With Quote
  #8 (permalink)  
Old 08-22-2009, 06:02 PM
Junior Member
 
Join Date: Aug 2009
Posts: 30
Smile

Nevermind. I'm an idiot. Got it figured out.

Thanks for the help though!
Reply With Quote
  #9 (permalink)  
Old 08-22-2009, 06:09 PM
Ariel_Z's Avatar
Basic4ppc Veteran
 
Join Date: May 2009
Posts: 246
Default

You probably made a mistake many others did. It might be helpful for many of us if you could explain what it was?
Reply With Quote
  #10 (permalink)  
Old 08-23-2009, 12:54 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

Quote:
Originally Posted by michaelm View Post
Nevermind. I'm an idiot.
In Portugal, an Idiot, is called "Idiota", wich I freely (very freely) translate to:
Someone who has lots of Ideas"

SO in MY way of seeing things we all are Idiots!!!
__________________
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
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
Ghost images?? HARRY Questions (Windows Mobile) 2 01-26-2009 10:20 AM
duplicate a form claveriel Questions (Windows Mobile) 5 11-19-2007 06:27 PM
Duplicate form and Copy control bidibulle Basic4ppc Wishlist 3 11-09-2007 06:39 PM


All times are GMT. The time now is 10:23 AM.


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