Click here to Skip to main content
16,004,887 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Closing an application Pin
No-e27-Nov-06 7:52
No-e27-Nov-06 7:52 
AnswerRe: Closing an application Pin
Kevin Nicol27-Nov-06 7:54
Kevin Nicol27-Nov-06 7:54 
QuestionDelphi: Types of actual and formal var parameters must be identical [modified] Pin
lil_nicci27-Nov-06 6:37
lil_nicci27-Nov-06 6:37 
AnswerRe: Delphi: Types of actual and formal var parameters must be identical Pin
Guffa27-Nov-06 7:39
Guffa27-Nov-06 7:39 
GeneralRe: Delphi: Types of actual and formal var parameters must be identical Pin
lil_nicci27-Nov-06 10:41
lil_nicci27-Nov-06 10:41 
GeneralRe: Delphi: Types of actual and formal var parameters must be identical Pin
Guffa27-Nov-06 19:38
Guffa27-Nov-06 19:38 
Questionempty column in database Pin
jds120727-Nov-06 5:20
jds120727-Nov-06 5:20 
AnswerRe: empty column in database Pin
Johan Hakkesteegt30-Nov-06 0:25
Johan Hakkesteegt30-Nov-06 0:25 
Hi,

The function as you posted it here, does not return anything, nor does it affect anything outside itself.
jds1207 wrote:
Public Function Empty(ByVal supercedeto As String) As Boolean
Dim number As String
number = String.Empty(supercedeto)
End Function


Does the column contain a set or random amount of zeroes?
jds1207 wrote:
If row("mostforwardpartnumber").ToString() = "0000000000000" Then
Empty(row("mostforwardpartnumber"))
End If


If the amount of zeroes is always the same, you don't need a function to empty the row. Try something like this:
<br />
Dim EmptyNr as integer<br />
Dim rw as datarow<br />
For Each rw In YourDataSet.Tables(0).rows<br />
If rw.item("mostforwardpartnumber") = "0000000000000" Then<br />
rw.item("mostforwardpartnumber") = EmptyNr<br />
End If


Otherwise you'll need to write a function that checks the value of the column and based on what that function returns, you can then empty the cel.

Hope this helps you,

Johan
QuestionSelecting datagrid cells Pin
Silver-Grey27-Nov-06 5:15
Silver-Grey27-Nov-06 5:15 
AnswerRe: Selecting datagrid cells Pin
Kevin Nicol27-Nov-06 7:52
Kevin Nicol27-Nov-06 7:52 
GeneralRe: Selecting datagrid cells Pin
Silver-Grey27-Nov-06 11:29
Silver-Grey27-Nov-06 11:29 
Questionstupid if functio Pin
charchabil0327-Nov-06 5:01
charchabil0327-Nov-06 5:01 
AnswerRe: stupid if functio Pin
charchabil0327-Nov-06 5:07
charchabil0327-Nov-06 5:07 
GeneralRe: stupid if functio Pin
ozoid27-Nov-06 6:07
ozoid27-Nov-06 6:07 
GeneralRe: stupid if functio Pin
charchabil0327-Nov-06 11:49
charchabil0327-Nov-06 11:49 
Questioncrystal report with dynamic dataset [modified] Pin
amilapradeep27-Nov-06 3:02
amilapradeep27-Nov-06 3:02 
QuestionProblem in SQL Connectivity code Pin
united1827-Nov-06 1:06
united1827-Nov-06 1:06 
AnswerRe: Problem in SQL Connectivity code Pin
Kevin Nicol27-Nov-06 2:32
Kevin Nicol27-Nov-06 2:32 
GeneralRe: Problem in SQL Connectivity code Pin
united1827-Nov-06 22:42
united1827-Nov-06 22:42 
Questionclick me if u can Pin
shyamy27-Nov-06 0:00
shyamy27-Nov-06 0:00 
AnswerRe: click me if u can Pin
Dave Kreskowiak27-Nov-06 2:42
mveDave Kreskowiak27-Nov-06 2:42 
QuestionWhat the default access specifier . Pin
ashwath197926-Nov-06 23:33
ashwath197926-Nov-06 23:33 
AnswerRe: What the default access specifier . Pin
Dave Kreskowiak27-Nov-06 2:48
mveDave Kreskowiak27-Nov-06 2:48 
AnswerRe: What the default access specifier . Pin
Bassam Saoud27-Nov-06 2:51
Bassam Saoud27-Nov-06 2:51 
Questionneed Pin
ashu_120826-Nov-06 21:56
ashu_120826-Nov-06 21:56 

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.