Basic4ppc - Windows Mobile Development  

Go Back   Basic4ppc - Windows Mobile Development > Foreign Languages > Portuguese Forum
Home Register FAQ Members List Search Today's Posts Mark Forums Read


Ajuda por favor com TABLE.AddCol


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-13-2008, 02:57 PM
Newbie
 
Join Date: Feb 2008
Posts: 6
Default Ajuda por favor com TABLE.AddCol

Tenho este programa, quando abro a form ver receita e depois fecho, volto a abrir sem sair do programa dá erro na linha:
37 - TABLE12.AddRow (TABLE1.Cell ("PADRAO",RAM),TABLE1.Cell ("CLIENTE",RAM))

Att. não pode sair do programa...
Attached Files
File Type: zip estamparia1.0.zip (1.7 KB, 7 views)
Reply With Quote
  #2 (permalink)  
Old 03-13-2008, 04:13 PM
specci48's Avatar
Basic4ppc Veteran
 
Join Date: Apr 2007
Location: Germany
Posts: 483
Default

(translated with google...)

Olá PSRC,

Razão pela qual você está tentando adicionar e remover colunas da tabela de cada vez, em vez de definir o tempo. Basta alterar seu código para este:
Code:
Sub Globals
	'Declare the global variables here.
	rAm = 0 'Record ID
	dataFile1 =   "RECEITAS.csv"
	changes = false 'Used for the "save changes before exit" question.
End Sub

Sub App_Start
	ESTAMPARIA.Show
	table1.LoadCSV("RECEITAS.csv",",",true,true)
	TABLE12.AddCol(cString,"PADRAO",90)
	TABLE12.AddCol(cString,"CLIENTE",120)	
End Sub

Sub ENTRECEITASEST_Click
	MENURECEITAS.Show
End Sub

Sub RECconsulta_Click
	RECEITACONSULTA.Show
End Sub

Sub PORCLIENTE_Click
	TABLE12.Visible=TRUE
	PORCLIENTE.Visible=FALSE
	For I = 0 To TABLE1.RowCount -1
	TABLE12.AddRow (TABLE1.Cell ("PADRAO",RAM),TABLE1.Cell ("CLIENTE",RAM))
	RAM=RAM+1
	Next I
	TABLE12.TableSort("CLIENTE ASC")
End Sub

Sub RECEITACONSULTA_Close
	If TABLE12.Visible=TRUE Then
	TABLE12.Visible=FALSE
	TABLE12.Clear
	PORCLIENTE.Visible=TRUE
	End If
	RAM=0
End Sub
specci48
Reply With Quote
  #3 (permalink)  
Old 03-13-2008, 04:31 PM
Newbie
 
Join Date: Feb 2008
Posts: 6
Default tanks

tanks
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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Ajuda pmsmc Portuguese Forum 1 03-13-2008 12:41 PM
AddCol to Table problem ? HARRY Questions & Help Needed 2 01-14-2008 06:44 PM
Ajuda no GPS mantex Portuguese Forum 3 11-10-2007 07:17 PM


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


Powered by vBulletin® Version 3.6.10
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0