15,887,477 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by OdeJong (Top 41 by date)
OdeJong
2-Jul-12 2:27am
View
I don't ignore the answers, I try them all. And I explained many times what my purpose is. I wil try something else then
OdeJong
29-Jun-12 10:07am
View
Sorry. I still don't understand it. I have set the comment out but then i Get a Error that the bound is out of array..
Index was outside the bounds of the array
OdeJong
28-Jun-12 6:38am
View
Bedankt! ik zal zien hoe ver ik hiermee kom. ha, ik zie dat je uit Amsterdam komt. Greetz!
OdeJong
28-Jun-12 6:05am
View
I don't know how to send u a private message, but I'm interested in what u have written. So maybe you can send me a few examples of your code.
Greetz
OdeJong
28-Jun-12 4:17am
View
I want to split it from out a vcf file:
BEGIN:VCard
VERSION:2.1
N:De Jong
FN:Anne
TEL;WORK;VOICE:0512540540
TEL;WORK;VOICE:0512540540
TEL;HOME;VOICE:06-11299731
TEL;CELL;VOICE:06-11299731
TEL;VOICE:0512 540221
TEL;WORK;FAX:0512 540540
TEL;FAX:0512 540221
ADR;WORK;PREF:;;Sjoerd Veltmanstraat 15;Drachten;;9203 NJ
ENCODING=QUOTED-PRINTABLE:Sjoerd Veltmanstraat 15
URL;HOME:www.epixfotostudio.nl
URL;WORK:www.epixfotostudio.nl
EMAIL;PREF;INTERNET:odejong@epixfotostudio.nl
END:VCARD
It's only the adres part, that's not working.
ADR;WORK;PREF:;;Sjoerd Veltmanstraat 15;Drachten;;9203 NJ
I only need this line. This line must be show in: strAdres, strPostcode, strPlaats. This tree strings must be together one :strAdgegevens.
there are different fields in my app, every field that will fill with this info is insert into the database.
OdeJong
27-Jun-12 4:56am
View
I'm not getting any further. Do you know how I can make one string, out of 3? So for example: dim strAdresGegevens = strAdres, strPostcode, strWoonplaats
do you know how?
thanks!
OdeJong
22-Jun-12 8:59am
View
Oke thanks! I will see if I can work it out now. p.s. sorry for late response, greetz me!
OdeJong
19-Jun-12 8:13am
View
thanks for you answer.
I have made a V-Card app and i want to import all the information into my database. My application is working till now. there is on thing that's still not working:
ADR;WORK;PREF:;;Sjoerd Veltmanstraat 15;Drachten;;9203 NJ
ENCODING=QUOTED-PRINTABLE:Sjoerd Veltmanstraat 15
It's going about the first line. I want to show the info after ":" I know ho I can do this but I am trying to get the ";".. out of these line and I still don't know how to do this. That's why I'm trying to use the methods split mid, ubound. greetz me (Y)
OdeJong
18-Jun-12 9:17am
View
That's what I am trying to do
OdeJong
12-Jun-12 8:42am
View
it's still not working
OdeJong
12-Jun-12 7:03am
View
I have tried your solution but I have restore my own code because it was not working like i want it to.
The peace of the adres, postcode, plaats is still not insert into the database. Thanks for your help so far, i will try something else.
OdeJong
12-Jun-12 4:16am
View
o.k. thanks! I will take a look for it and I will try to use your solution. Thanks!
OdeJong
11-Jun-12 5:09am
View
thanks u2 for both the answers! i give u2 5stars! but one question:
I have no as result:
strTelThuis + strWerk in one field of my table. Can I write a code that I can use one of these two? so if I have both numbers then let show strWerk. If have one of these two than show the one I have..
Do you know how to do that?
Thanks!
OdeJong
5-Jun-12 10:18am
View
yes, a little... and i'm still trying to figure it out.
maby you can send me in the good direction?
but enough for now, im going work on it thursday again.
OdeJong
4-Jun-12 8:43am
View
Thanks!!
It's working now :) and I am gonna try to learn harder
Thanks a lot! and 5 stars for you
greets
OdeJong
4-Jun-12 8:11am
View
Oke thanks!
OdeJong
4-Jun-12 8:00am
View
sorry, i'm a beginner.. just learning it
OdeJong
4-Jun-12 7:49am
View
stil dont understand, I make it with VB.net
OdeJong
4-Jun-12 7:16am
View
sorry.. I don't understand it..
can you give me an example?
OdeJong
1-Jun-12 5:33am
View
Thanks for your answer! this is the best solution so far.. I'm now @ the next step so I think that I can work a little more with my project now. Thanks! 5!
OdeJong
31-May-12 2:31am
View
oke thanks
OdeJong
30-May-12 7:56am
View
Sorry I don't know what u mean. Can u give me an example?
OdeJong
25-May-12 4:09am
View
thanks for your solution.
I am now one stop farther , but I still have some questions.
The question that I want to ask right now is..
how can I use this same code with a INSTR and a MID method if you know what that is? "N" must be a string, if N is in the text file then N must become Name
OdeJong
22-May-12 4:27am
View
Can I do this in another way? ehm something like this:
I want to read the Textfile.. if this file is starting with "BEGIN:VCARD" then go to a new Line, if second line is starting with Version.. Then going tot the 3d line..
Then ehm..N = Name ( The name of the user) so The name must replace "N"
Firstname replace FN
TEL;WORK;VOICE:0505420369 (replace..)
TEL;WORK;VOICE:0505420369
TEL;HOME;VOICE:06-12345678
TEL;CELL;VOICE:06-12345678
TEL;VOICE:0512 342040
TEL;WORK;FAX:0512 342040
TEL;FAX:0512 342040
ADR;WORK;PREF:;;Straat 34;HoutJE;;8765 AF
ENCODING=QUOTED-PRINTABLE:Straat 34
URL;HOME:www.biss.nu
URL;WORK:www.biss.nu
EMAIL;PREF;INTERNET:Jan@home.nl
(replace till this line)
Write the information above tot TextBox and go to new line..
END:VCARD (if last line is something like startswith "this"..then reading and writing is done, the vcard will show in textBox..
do you know how to do this?
OdeJong
21-May-12 9:46am
View
I have tried this solution..
I think I need some more code to complete this.. so it's not working @ the moment, I wil try to use it and look @ the internet once again, thanks
OdeJong
21-May-12 9:45am
View
hmm.. thanks for your answer, but I don't understand that "parse".. method.. ma by you can give me an example of it?
OdeJong
21-May-12 9:09am
View
Thanks! That can be very useful to me:)
thank u very much, i gonna try this immediately
OdeJong
15-May-12 10:15am
View
oke, thanks for your solution.
I'm still a beginner and the reading part is clear to me.. but i don't want to writ text to a file but i want to write the text to textboxes in my app.
so what i mean is.. i have saved the vcard file(*.vcf) and i want to let user choos to open this file in a new form.
OdeJong
11-May-12 2:44am
View
Version 2.1 if that's what you meaning..?
strResultaat = "BEGIN:VCard"
strResultaat = strResultaat & vbCrLf & "VERSION:2.1"
strResultaat = strResultaat & vbCrLf & "N:" & lvwRelaties.SelectedItems(0).SubItems(2).Text
strResultaat = strResultaat & vbCrLf & "FN:" & lvwRelaties.SelectedItems(0).SubItems(3).Text
OdeJong
10-May-12 7:21am
View
I have made a V-Card with the information from a database and now i want to return it. so I have an application with a button, if i wil click on it, it's going to make a vcf file. This file i have made, i can import in my outlook but what i want to do is to import this file in my own app.
greetz
OdeJong
24-Apr-12 4:05am
View
ok thanks, i will try that!
OdeJong
23-Apr-12 9:57am
View
Thanks for your solution! I will try to use that article and I think it's going to be o.k. now (Y)
OdeJong
23-Apr-12 9:08am
View
oke I know that, but that is not what I want.
I want to let the user sorts the columns just the way he/she wants.
So if the user clicks on one of the columns, the same column must sort by alphabet
OdeJong
23-Apr-12 5:21am
View
Thanks for your Solution! It works 100%, I'm very happy :)
Now I can make a V-Card with 1 click on the rightmousebutton and olso close my application with this same menu. Thanks!
OdeJong
17-Apr-12 7:24am
View
i have searched once again about this methode.. is this methode only for use with a split container?
OdeJong
13-Apr-12 4:58am
View
yes, thanks for your answers. This is very useful but, if the user is saving the file.. I want to have a filename that is ehm, how can i say it right "the same as".. firstname in the file..
can one of you tell me how to do this?
OdeJong
11-Apr-12 7:31am
View
why you are going to see what's my question if you are not giving an answer? lol
OdeJong
11-Apr-12 3:25am
View
mwa, it's not to hard.. it's complicated because i'm from holland and i'm not so good @ English but thanks! I am one step closer now and it works fine! my code for now is:
'De volgende code zorgt ervoor dat het bestand wordt opgeslagen als V-Card (*.vcf).
Private Sub VCard()
Dim pad As String = _
Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments)
Dim resultaat As String
If MsgBox("Maak bestand", MsgBoxStyle.YesNo) = MsgBoxResult.Yes Then
resultaat = "BEGIN:VCard"
resultaat = resultaat & vbCrLf & "VERSION:2.1"
resultaat = resultaat & vbCrLf & "N:" & lstRelaties.SelectedItems(0).SubItems(2).Text
resultaat = resultaat & vbCrLf & "FN:" & lstRelaties.SelectedItems(0).SubItems(3).Text
resultaat = resultaat & vbCrLf & "TEL;WORK;VOICE:" & lstRelaties.SelectedItems(0).SubItems(7).Text
resultaat = resultaat & vbCrLf & "TEL;WORK;VOICE:" & lstRelaties.SelectedItems(0).SubItems(7).Text
resultaat = resultaat & vbCrLf & "TEL;HOME;VOICE:" & lstRelaties.SelectedItems(0).SubItems(8).Text
resultaat = resultaat & vbCrLf & "TEL;CELL;VOICE:" & lstRelaties.SelectedItems(0).SubItems(8).Text
resultaat = resultaat & vbCrLf & "TEL;VOICE:" & lstRelaties.SelectedItems(0).SubItems(9).Text
resultaat = resultaat & vbCrLf & "TEL;WORK;FAX:" & lstRelaties.SelectedItems(0).SubItems(10).Text
resultaat = resultaat & vbCrLf & "TEL;FAX:" & lstRelaties.SelectedItems(0).SubItems(10).Text
resultaat = resultaat & vbCrLf & "ADR;WORK;ENCODING=QUOTED-PRINTABLE:" & _
lstRelaties.SelectedItems(0).SubItems(4).Text & "=0D=0A=" & lstRelaties.SelectedItems(0).SubItems(5).Text
resultaat = resultaat & vbCrLf & "URL;HOME:" & lstRelaties.SelectedItems(0).SubItems(11).Text
resultaat = resultaat & vbCrLf & "URL;WORK:" & lstRelaties.SelectedItems(0).SubItems(11).Text
resultaat = resultaat & vbCrLf & "EMAIL;PREF;INTERNET:" & lstRelaties.SelectedItems(0).SubItems(10).Text
resultaat = resultaat & vbCrLf & "END:VCARD"
MsgBox(resultaat)
Using writer As StreamWriter = New StreamWriter(pad & "\Vcard.vcf")
writer.Write(resultaat.ToString())
End Using
End If
End Sub
The messagebox is to test what my app is doing by runtime
OdeJong
10-Apr-12 8:43am
View
i dont know how to do it and msdn is to difficult for me..
the are not easy in explaining thing that's why i ask my question here..
i know that i can make 1 string with all the contents and then write them into a textfile so i can save as .vcf but i dont know how.
OdeJong
5-Apr-12 9:57am
View
i want to make it possible to make the text in my textbox save as a v-card that i can open with any email client en send it by mail
OdeJong
3-Apr-12 5:24am
View
hmm,.. sorry it doesn't work.. still got only one cell and not the entire row. But thnx foor your help
Show More