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.

Table

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-12-2010, 02:17 PM
aru aru is offline
Junior Member
 
Join Date: Feb 2010
Posts: 24
Default Table

Hi I need a help,

I created a program for search result,
Here I have two button. 1) SEARCH 2 ) DELETE

When I click on search, all record will be displayed in the table.

And I can select a record to delete.
But If I am not select a record, and when I click on delete button, First record is deleted automatically or
first record is selected automatically to delete.

I don't want that type of deletion, deletion only after select a record.



My code is give below.
I want this program as when I press delete button, with out selection any record, any record won't be deleted.

Sub deleteStudent_Click
If SearchingStudent.RowCount <= SearchingStudent.SelectedRow Then Return
name = SearchingStudent.Cell (SearchingStudent.ColName(1),SearchingStudent.Sele ctedRow)
address = SearchingStudent.Cell (SearchingStudent.ColName(2),SearchingStudent.Sele ctedRow)
Msgbox(name)
Msgbox(address)
End Sub



Thanks and regards
Aru

Last edited by aru : 03-14-2010 at 08:59 AM.
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
Copy row from table to table petrbury Questions (Windows Mobile) 12 06-25-2011 12:54 AM
Autoresize columns in table to fit Table Width ghale Code Samples & Tips 4 05-15-2010 01:14 PM
A table with two columns, how to fit the colums in the table? ghale Questions (Windows Mobile) 22 08-02-2009 07:53 PM
Retrieve table filter from the filtered table? LineCutter Questions (Windows Mobile) 1 09-08-2008 07:20 AM


All times are GMT. The time now is 09:01 PM.


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