Click here to Skip to main content
15,887,596 members
Home / Discussions / C#
   

C#

 
GeneralRe: readonly keyword Pin
N8tiv11-Sep-13 23:12
N8tiv11-Sep-13 23:12 
GeneralRe: readonly keyword Pin
Abhinav S12-Sep-13 8:22
Abhinav S12-Sep-13 8:22 
GeneralRe: readonly keyword Pin
DaveyM6913-Sep-13 9:40
professionalDaveyM6913-Sep-13 9:40 
Questiondelay and back again record Pin
eng.iris11-Sep-13 18:07
eng.iris11-Sep-13 18:07 
AnswerRe: delay and back again record Pin
Eddy Vluggen12-Sep-13 2:58
professionalEddy Vluggen12-Sep-13 2:58 
GeneralRe: delay and back again record Pin
eng.iris12-Sep-13 8:21
eng.iris12-Sep-13 8:21 
GeneralRe: delay and back again record Pin
Eddy Vluggen12-Sep-13 10:42
professionalEddy Vluggen12-Sep-13 10:42 
GeneralRe: delay and back again record Pin
Eddy Vluggen13-Sep-13 7:06
professionalEddy Vluggen13-Sep-13 7:06 
eng.iris wrote:
i dont get ur idea
"Your" idea; we don't do textspeak here. I've recreated a simplification of your tables below, and you said that you'd be moving a record from table A to table B, when a timer-event occurs.
SQL
CREATE TABLE A (
pationt_no   BIGINT
pationt_name VARCHAR(250)
test_time    DATETIME)

CREATE TABLE B (
pationt_no   BIGINT
pationt_name VARCHAR(250)
test_time    DATETIME)
You could remove table B from the design, simply by adding a flag (a boolean/bit field) to table A;
SQL
CREATE TABLE A (
pationt_no   BIGINT
pationt_name VARCHAR(250)
test_time    DATETIME
IsInTableB   BIT)
Whenever you'd want all records that are in A, but not in B, you'd extend the WHERE clause with a filter for the IsInTableB column, like below;
SQL
SELECT *
   FROM A
  WHERE IsInTableB = False


eng.iris wrote:
when delay button clicked i move the current record to another datatabbe and after 2 min i restore it back to the original datatable but unfortunately i get an error

"that deleted records cant be inserted " ? even if i refreshed my datasource
That datatable is an in-memory representation of the real table. I'd recommend using SQL-statements to update the physical table in the database - that way the information doesn't get lost when the application or the power fails.
Bastard Programmer from Hell Suspicious | :suss:
If you can't read my code, try converting it here[^]

Questiontv show control in c# Pin
eng.iris11-Sep-13 17:54
eng.iris11-Sep-13 17:54 
AnswerRe: tv show control in c# Pin
Abhinav S11-Sep-13 18:24
Abhinav S11-Sep-13 18:24 
General"this" keyword Pin
N8tiv11-Sep-13 17:17
N8tiv11-Sep-13 17:17 
GeneralRe: "this" keyword Pin
Ron Beyer11-Sep-13 17:35
professionalRon Beyer11-Sep-13 17:35 
GeneralRe: "this" keyword Pin
N8tiv11-Sep-13 18:08
N8tiv11-Sep-13 18:08 
GeneralRe: "this" keyword Pin
Ron Beyer11-Sep-13 18:15
professionalRon Beyer11-Sep-13 18:15 
GeneralRe: "this" keyword Pin
N8tiv11-Sep-13 18:26
N8tiv11-Sep-13 18:26 
GeneralRe: "this" keyword Pin
Ron Beyer11-Sep-13 18:50
professionalRon Beyer11-Sep-13 18:50 
GeneralRe: "this" keyword Pin
Abhinav S11-Sep-13 18:23
Abhinav S11-Sep-13 18:23 
GeneralRe: "this" keyword Pin
V.11-Sep-13 21:49
professionalV.11-Sep-13 21:49 
QuestionDrawing a line that follows a moving point Pin
Davebandit11-Sep-13 4:40
Davebandit11-Sep-13 4:40 
AnswerRe: Drawing a line that follows a moving point Pin
Richard MacCutchan11-Sep-13 6:22
mveRichard MacCutchan11-Sep-13 6:22 
GeneralRe: Drawing a line that follows a moving point Pin
Davebandit11-Sep-13 8:28
Davebandit11-Sep-13 8:28 
GeneralRe: Drawing a line that follows a moving point Pin
Eddy Vluggen11-Sep-13 11:09
professionalEddy Vluggen11-Sep-13 11:09 
GeneralRe: Drawing a line that follows a moving point Pin
Davebandit12-Sep-13 1:04
Davebandit12-Sep-13 1:04 
GeneralRe: Drawing a line that follows a moving point Pin
Richard MacCutchan11-Sep-13 20:53
mveRichard MacCutchan11-Sep-13 20:53 
Questionnested classes Pin
Member 1026649411-Sep-13 1:51
Member 1026649411-Sep-13 1:51 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.