•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the Visual Basic 4 / 5 / 6 section within the Software Development category of DaniWeb, a massive community of 427,939 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,827 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Visual Basic 4 / 5 / 6 advertiser: Programming Forums
Views: 477 | Replies: 2
![]() |
•
•
Join Date: Sep 2007
Posts: 50
Reputation:
Rep Power: 2
Solved Threads: 0
Hi,
I would like to pass on a parameter from VB6 for the date.value from datepicker.
Pl help me how to convert date.value into string as the parameter I have created in
Crystal Report is string type. The parameter name in Crystal Report is chdate.
I wrote the code as under but it did not work
Dim a as string
Dim b as date
b=dt1.value
a=Cstr(b)
So pl help me.
(Kehar)
I would like to pass on a parameter from VB6 for the date.value from datepicker.
Pl help me how to convert date.value into string as the parameter I have created in
Crystal Report is string type. The parameter name in Crystal Report is chdate.
I wrote the code as under but it did not work
Dim a as string
Dim b as date
b=dt1.value
a=Cstr(b)
So pl help me.
(Kehar)
•
•
Join Date: Jul 2008
Posts: 31
Reputation:
Rep Power: 1
Solved Threads: 6
Well since string can accept any characters except special ascii(0) who is end of string witch means after ascii(0) you wont be able to see any characters if you have some.
and if you write it these way it should work.
Have fun
and if you write it these way it should work.
Dim d As Date
Dim a As String
d = "1.1.2000"
a = dHave fun
Hi,
Try This :
Regards
Veena
Try This :
vb Syntax (Toggle Plain Text)
Dim a as string a = Format(dt1.value,"dd-mm-yyyy")
Regards
Veena
![]() |
•
•
•
•
•
•
•
•
DaniWeb Visual Basic 4 / 5 / 6 Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Other Threads in the Visual Basic 4 / 5 / 6 Forum
- Previous Thread: Prevalued arrays in module declaration section
- Next Thread: how to use date difference in vb 6.0


Linear Mode