Visual Basic Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreVisual Basic Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
AT&T devCentral & BlackBerry(r) Webcast Series: BlackBerry and GPS -Build Location Awareness into your BlackBerry Applications, July 10th-1:00PM EST. Register Today!
  #1  
Old August 9th, 2003, 03:29 PM
dimensionfx dimensionfx is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Posts: 1 dimensionfx User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via Yahoo to dimensionfx
Adding Data to FlexGrid?

Hi,
Im pretty new at vb, and Im facing a problem when Im trying to add item to a flexgrid. Iv hooked it up to a Database, with the table called "main" , with various fields. It manages to display the data from the database perfectly, yet when I go to add data using the AddItem command, it dont work. This is what Im trying:

(main is the name of the Flexgrid Control):

Private Sub Command1_Click()
grdmain.Col = 2
grdmain.Row = 2
grdmain.AddItem = test
test = InputBox("TESTING!")
End Sub

To begin with, an input box DOES NOT appear? However, I discovered that if I remove the GRD, so that the code looks like this:

Private Sub Command1_Click()
main.Col = 2
main.Row = 2
main.AddItem = test
test = InputBox("TESTING!")
End Sub

an input box DOES APPEAR, but the data is not added onto the FlexGrid - or rather, perhaps its added and does not show? (Iv tried opening the database to check, but it isnt added).
Any help highly appreciated. Thanks.

Reply With Quote
  #2  
Old August 12th, 2003, 10:14 PM
Kronique Kronique is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Location: Danbury,CT
Posts: 14 Kronique User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Private Sub Command1_Click()
try

test = InputBox("TESTING!")
grdmain.Col = 2
grdmain.Row = 2
grdmain.AddItem = test
End Sub

assignment got mixed up

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreVisual Basic Programming > Adding Data to FlexGrid?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway