|
-
Oct 20th, 2001, 10:39 AM
#1
Thread Starter
Addicted Member
Old enough to know better,
but young enough to don't give a ****!
-
Oct 20th, 2001, 10:42 AM
#2
PowerPoster
On which lines does it stop?
-
Oct 20th, 2001, 10:42 AM
#3
Member
If that's a type mismatch and it occurs on the line ListReminderAll.AddItem DatumAdd1, then try making it ListReminderAll.AddItem CStr(DatumAdd1).
-
Oct 20th, 2001, 10:46 AM
#4
Thread Starter
Addicted Member
nope
nope .. doesn't work !! 
vb blocked @
DatumAdd1 = txtDateadd1.Text
Old enough to know better,
but young enough to don't give a ****!
-
Oct 20th, 2001, 10:47 AM
#5
Member
Well, like Chris said, which line is it on?
-
Oct 20th, 2001, 10:47 AM
#6
PowerPoster
Actually I think it's more likely to be this line
VB Code:
DatumAdd1 = txtDateadd1.Text
since DatumAdd1 is a currency type.
-
Oct 20th, 2001, 10:47 AM
#7
Member
Re: nope
Originally posted by [DBH]Longbow
nope .. doesn't work !! 
vb blocked @
DatumAdd1 = txtDateadd1.Text
Then try DatumAdd1 = CDate(txtDateadd1.Text).
-
Oct 20th, 2001, 10:49 AM
#8
PowerPoster
Re: Re: nope
Originally posted by filburt1
Then try DatumAdd1 = CDate(txtDateadd1.Text).
DatumAdd1 is currency you numnut! Try CCur instead
-
Oct 20th, 2001, 10:50 AM
#9
Thread Starter
Addicted Member
..
no ..
what could it be ??
error on same line!!
-> DatumAdd1 = CDate(txtDateadd1.Text)
Old enough to know better,
but young enough to don't give a ****!
-
Oct 20th, 2001, 10:55 AM
#10
Fanatic Member
VB Code:
DatumAdd1 = CCur(txtDateadd1.Text)
What does CCur mean?
-
Oct 20th, 2001, 10:57 AM
#11
Thread Starter
Addicted Member
sure .. doesnt work!!#
hmm if i kick this ?? would be better!
Old enough to know better,
but young enough to don't give a ****!
-
Oct 20th, 2001, 11:19 AM
#12
PowerPoster
Originally posted by Kings
What does CCur mean?
Should convert expression to currency...does it not?
-
Oct 20th, 2001, 12:01 PM
#13
Member
-
Oct 20th, 2001, 06:02 PM
#14
PowerPoster
you're all gonna do a collective d]oh!! 
VB Code:
firstFind = SendMessage(ListReminderAll.hwnd, _
LB_FINDSTRINGEXACT, startfrompoint, [b]ByVal "f"[/b])
Searching for "f" all the time.
Ok, so the entry if it is a date should be string formatted using dd/mm/yy. If it is currency still convert to a string.
eg
VB Code:
Private Sub Command1_Click()
Dim startfrompoint As Long
Dim firstFind As Long
Dim DatumAdd1 As String
startfrompoint = -1 'immer von ganz oben suchen
[b]DatumAdd1 = Format$(txtDateadd1.Text, "dd/mm/yy") 'OR "0.00" IF Currency[/b]
firstFind = SendMessage(ListReminderAll.hwnd, LB_FINDSTRINGEXACT, startfrompoint, ByVal [b]Datumadd1[/b])
If firstFind <> -1 Then
MsgBox "Eintrag gefunden. Index:" & firstFind
Else
ListReminderAll.AddItem DatumAdd1
End If
End Sub
Regards
Stuart
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|