Basic4ppc - Windows Mobile Development  

Go Back   Basic4ppc - Windows Mobile Development > Main Category > Questions & Help Needed
Home Register FAQ Members List Search Today's Posts Mark Forums Read

Questions & Help Needed Post any question regarding Basic4ppc.


SQL - ExecuteTable - change colname


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-16-2008, 11:33 AM
Newbie
 
Join Date: Apr 2008
Posts: 2
Default SQL - ExecuteTable - change colname

Hello,

does anybody know if it is possible to change the colname after
using command ExecuteTable ?
When I'm using e.g. cmd.ExecuteTable("table1",500)
I get the column names like the fieldnames in the database table
defined.
I would like to do something like this
table1.colname("field1") = "CatalogID"

Thanks for you help.

Best Regards

Michael
Reply With Quote
  #2 (permalink)  
Old 04-16-2008, 11:56 AM
willisgt's Avatar
Senior Member
 
Join Date: Aug 2007
Location: Nacogdoches, Texas USA
Posts: 157
Default

I dont' think this is possible (although some of the true gurus here probably know some manner of black magic that could make it happen...)

Alternatively, you could specify the column name as part of the query. Instead of:

SELECT field1,field2,field3 FROM database WHERE...

try

SELECT field1 'Product Name', field2 'Supplier', field3 'Price' FROM database WHERE...

Everything else remains the same.


Gary
__________________
PC: Windows XP Pro SP3 / Basic4PPC v6.5
PPC: HTC 8925 (AT&T Tilt) / Windows Mobile 6
Reply With Quote
  #3 (permalink)  
Old 04-17-2008, 07:30 AM
Newbie
 
Join Date: Apr 2008
Posts: 2
Default

Gary,
thank you for your help,
works perfect.

Regards
Michael
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
Error with ExecuteTable N1c0_ds Questions & Help Needed 1 10-22-2008 12:49 AM
SQLite ExecuteTable JamesC Questions & Help Needed 2 07-20-2008 11:21 AM
cmd.ExecuteTable("table1",500) error dennishea Questions & Help Needed 3 06-15-2008 04:17 PM
can i change font ? gjoisa Questions & Help Needed 1 03-29-2008 10:58 AM
Font Change Stanl3yCZ Questions & Help Needed 2 01-27-2008 07:22 PM


All times are GMT. The time now is 01:29 AM.


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