General Car Related Discussion. To discuss anything that is related to cars and automotive technology that doesnt naturally fit into another forum catagory.

Any Visual Basic programmers online?????

Thread Tools
 
Search this Thread
 
Old 15-01-2005, 11:12 AM
  #1  
Lee_R21Turbo
PassionFord Post Whore!!
Thread Starter
iTrader: (1)
 
Lee_R21Turbo's Avatar
 
Join Date: May 2004
Location: Liverpool :o)
Posts: 4,715
Likes: 0
Received 0 Likes on 0 Posts
Default Any Visual Basic programmers online?????

If so I need help (not in that way)....anyone got any ideas how to set the firstrow property for a datagrid....looks like a piece of piss in the MSDN help but it doesnt work & always returns an error found lots of people with the same problem online but no-one seems to know the answer!!!!

Anyone???
Old 15-01-2005, 12:13 PM
  #2  
ECU Monitor Enthusiast
BANNED
BANNED
iTrader: (1)
 
ECU Monitor Enthusiast's Avatar
 
Join Date: Jul 2003
Location: Wiltshire
Posts: 12,483
Likes: 0
Received 0 Likes on 0 Posts
Default

Lee_R21Turbo,

Do you have the latest RUNTIME librarys on the machine you are running on ?

Perhaps you are getting confused with the "TOPROW" property ?


I have had similar problems so many times and no one I know has a
definite fix that works.

I got around it by creating the datagrid object at runtime rather than visually
creating it but this is a lot of work.

Had so many problems with VB in the past that I no longer use it by choice.

Much prefer DELPHI or C ....
Old 15-01-2005, 12:27 PM
  #3  
sjoyce666
Too many posts.. I need a life!!
 
sjoyce666's Avatar
 
Join Date: Aug 2003
Location: Yeovil
Posts: 886
Likes: 0
Received 0 Likes on 0 Posts
Default

what error is it returning ??

Scott
Old 15-01-2005, 12:40 PM
  #4  
Lee_R21Turbo
PassionFord Post Whore!!
Thread Starter
iTrader: (1)
 
Lee_R21Turbo's Avatar
 
Join Date: May 2004
Location: Liverpool :o)
Posts: 4,715
Likes: 0
Received 0 Likes on 0 Posts
Default

I'm running VB SP5 not SP6 - heard tooo many bad things about it!

Naah not getting confused with TOPROW (that doesnt seem to be a property on mine) - I've got a datagrid that I am using a combo box with, to alter values - it actually alters an underlying SQL table but the results are queried using a SQL view i.e. 1 = Supplier1, 2 = Supplier2 etc - the view shows the Supplier1 whereas the table shows the ID 1. Once the value has been changed in the table it needs to refresh the datagrid & place the pointer back exactly where it was on the datagrid & physically in the same place too so not to confuse the user - hence the reason to set the FirstRow in the datagrid to what it was before the recordset was refreshed.

I've just managed to sort it now by setting the bookmark property of the recordset to the firstrow value before it got refreshed then setting the bookmark value to the record pointer!!! So easy when you think about it - was pulling my hair out all yesterday afternoon!!! Fresh head and all that.....

I've seen Delphi - thats basically a windows based Turbo Pascal is it not - used TP7 programming language when I did my A levels. I would like to look at another programming language prob VC but I never seem to get time to play with it!! TBH I'll probably move onto VB .NET as its the next logical step!!
Old 15-01-2005, 12:42 PM
  #5  
Lee_R21Turbo
PassionFord Post Whore!!
Thread Starter
iTrader: (1)
 
Lee_R21Turbo's Avatar
 
Join Date: May 2004
Location: Liverpool :o)
Posts: 4,715
Likes: 0
Received 0 Likes on 0 Posts
Default

Originally Posted by sjoyce666
what error is it returning ??

Scott
It was returning '6149 Invalid Bookmark'

The syntax I was using was Me.DataGrid.FirstRow = FRow (a variant) which is how it says to do it everywhere!!!
Old 15-01-2005, 12:52 PM
  #6  
sjoyce666
Too many posts.. I need a life!!
 
sjoyce666's Avatar
 
Join Date: Aug 2003
Location: Yeovil
Posts: 886
Likes: 0
Received 0 Likes on 0 Posts
Default

java's the way forward !!

im using VB at the moment and havent used it for a while but starting to get back into it now, confusing running two programming languages together tho as i find myself writing java in VB and vise versa

happy days

Scott
Old 15-01-2005, 01:01 PM
  #7  
Lee_R21Turbo
PassionFord Post Whore!!
Thread Starter
iTrader: (1)
 
Lee_R21Turbo's Avatar
 
Join Date: May 2004
Location: Liverpool :o)
Posts: 4,715
Likes: 0
Received 0 Likes on 0 Posts
Default

Not done much in Java or Javascript - tend to use VBScript cos its very similar to VB!

How much better do you feel when you've fixed a problem you've been having for ages....relief isnt in it!!
Old 15-01-2005, 01:30 PM
  #8  
sjoyce666
Too many posts.. I need a life!!
 
sjoyce666's Avatar
 
Join Date: Aug 2003
Location: Yeovil
Posts: 886
Likes: 0
Received 0 Likes on 0 Posts
Default

yeah loads, ive got a presentation on friday about my project which i hadnt started until yesterday, i got loads of technology proving done to show i could do it as i said i could, just got a 3000 word report to write about it now
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
massivewangers
General Car Related Discussion.
30
01-10-2015 07:40 PM
M7 COS
Wheels and Tyres
3
01-10-2015 04:46 PM
Fudgey
General Car Related Discussion.
21
30-09-2015 06:19 PM



Quick Reply: Any Visual Basic programmers online?????



All times are GMT. The time now is 08:51 AM.