Jump to content
bobbytza

[VB] Replace text

Recommended Posts

Posted

Nu stiu cum sa explic clar dar macar incerc.

Am un textbox cu o un link (ex www.google..ro ) si vreau sa inlocuiesc primul "o" cu altceva ;de ex "q",cand apas pe un buton.

Cum pot sa fac asta ?

Fara off-topic,daca stiti postati,sau go google.

Mersi.

Posted

Replace("http://www.google.ro", "g", "Q", 1, 1, vbBinaryCompare)

Parametrii:

1) sirul tau, cel in care vrei sa inlocuiesti

2) ce anume vrei sa inlocuiesti

3) cu ce anume vrei sa inlocuiesti

4) de unde sa inceapa cautarea

5) numarul de aparitii de care sa inlocuiesti

6) tipul de comparare

Joaca-te putin cu functia si o sa intelegi. :)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...