Skip to content
MPGHThe Dark Arts
/
RegisterLog in
Forum
Community
What's NewLatest posts across the boardTrendingHottest threads right nowSubscribedThreads you follow
Discussion
GeneralIntroductionsEntertainmentDebate FortFlaming & Rage
Board
News & AnnouncementsMPGH TimesSuggestions & HelpGiveaways
More Sections
Art & Graphic DesignProgrammingHackingCryptocurrency
Hacks & Cheats
Games
ValorantCS2 / CS:GOCall of Duty / WarzoneFortniteApex LegendsEscape From Tarkov
+14 moreLeague of LegendsGTA VMinecraftRustROTMGBattlefieldTroveBattleOnCombat ArmsCrossFireBlackshotRuneScapeDayZDead by Daylight
Resources
Game Hacking TutorialsReverse EngineeringGeneral Game HackingAnti-CheatConsole Game Hacking
Tools
Game Hacking ToolsTrainers & CheatsHack/Release NewsNew
Submit a release →Share your cheat, tool, or config with the community.
AINEW
AI Tools
General & DiscussionPrompt EngineeringLLM JailbreaksHotAI Agents & AutomationLocal / Open Models
AI × Gaming
AI Aimbots & VisionML Anti-CheatGame Bots & Automation
Create
AI Coding / Vibe CodingAI Art & MediaAI Voice & TTS
The AI frontier →Where game hacking meets modern machine learning. Jump in.
Marketplace
Buy & Sell
SellingBuyingTradingUser Services
Trust & Safety
Middleman LoungeMarketplace TalkVouch Copy Profiles
Money
Cryptocurrency TalkCurrency ExchangeWork & Job Offers
Start selling →List accounts, services, and goods. Use the middleman to trade safe.
MPGH The Dark Arts

A community for offensive security research, reverse engineering, and AI.

Community

ForumMarketplaceSearch

Account

RegisterLog in

Legal

Privacy PolicyForum RulesHelp & FAQ
© 2026 MPGH · All rights reserved.Built by the community, for the community. For educational purposes onlyContent is shared for security research and education — we don't condone illegal use. You're responsible for complying with applicable laws. Use at your own risk.
Home › Forum › Programming › Visual Basic Programming › [Help] For Each ""

[Help] For Each ""

Posts 1–15 of 15 · Page 1 of 1
PP
ppl2pass
[Help] For Each ""
Hey i need help replacing all the
Code:
& # 3 3 ;
or ! mark. but in vb it shows it as the code above.

Code:
For each "!" in Line
Blah blah blah?
Code:
HELPPPPPPP!!!!!
#1 · edited 16y ago · 16y ago
MJLover
MJLover
Quote Originally Posted by ppl2pass View Post
Hey i need help replacing all the
Code:
& # 3 3 ;
or ! mark. but in vb it shows it as the code above.

Code:
For each "!" in Line
Blah blah blah?
Code:
HELPPPPPPP!!!!!

Hmm... You need to replace items, and declare a string for the 'For' loop that will hold each line you are going through....


Code:
For each x as string in Lines
If *****ntains("!") Or *****ntains("&") Or *****ntains("#") Or *****ntains("Blah Blah") Then

x=x.replace ("!","")
x=x.replace ("&","")
x=x.replace ("#","")
x=x.replace ("Blah Blah","")

'Display the modified line...
Msgbox (x)


End If

Next
#2 · 16y ago
Invidus
Invidus
Damnit MJ!! You make me feel like a newb at VB sometimes.. Wait.. Don't answer that..
#3 · 16y ago
PP
ppl2pass
Sorry it doesnt work.

Code:
   For Each x As String In Topic1Text
            If *****ntains("& #33;") Then
                x = x.Replace("& #33;", "!")
                Label1.Text = Topic1Text
            End If
        Next
I tried this with the:
HELPPPPPPP & #33; & #33; & #33; & #33; & #33;

remove spaces
#4 · 16y ago
NextGen1
NextGen1
Just make sure the Spacing is right, remove the spaces in & # 3 3
COnsidering Topic1Text will technically be one string, you should be able to do it this way

[php]
Dim String1 As String = Topic1Text
Dim String2 As String = String1.Replace("& # 3 3;", "")
[/php]


That simple really
#5 · 16y ago
Invidus
Invidus
Hm. I don't understand this crap o.o
i'mma go re-learn VB >.<
#6 · 16y ago
NextGen1
NextGen1
String manipulation is rather simple, the fucntions are pre implimented, it is a matter of figuring out what you are dealing with. In this case, you are dealing with one large string, the mistake is to assume because it has multiple parts it is multiple strings, when in fact it is a single string.

(or so I preserve it to be, waiting for OP to verify)
#7 · 16y ago
PP
ppl2pass
thanks it worked.

do you know where i can find other codes other than !.

For example ! is & # 3 3 ;

how about @ and $ and %?
Where can i find those?
#8 · 16y ago
PP
ppl2pass
ok it worked.
Code:
Topic1TextFinal = Topic1Text.Replace("& # 3 3 ;", "!")
What if i wanted to add another line to check for
& # 0 3 6 ;
#9 · 16y ago
Blubb1337
Blubb1337
Are you actually trying to figure out things on your own before asking?
#10 · 16y ago
PP
ppl2pass
yes i already tried.
#11 · 16y ago
NextGen1
NextGen1
You can use another instance of it,

Topic1TextFinal = Topic1Text.Replace("& # 0 3 6 ;", " ")
It should work the same way, just add it after the former.

@ blubb

I believe he tried, there was a decent gap in time , but regardless, I am here to help

#12 · 16y ago
PP
ppl2pass
nvm it works but i would have alot of strings....
#13 · edited 16y ago · 16y ago
NextGen1
NextGen1
What do you mean a-lot of strings? If you mean in the code, it shouldn't be a big deal, as long as it is functional to the user right?

Code should be kept clean, but sometimes you can't really help it
#14 · 16y ago
Invidus
Invidus
i hate unclean code o.o
but essentially yes, it doesn't matter as long as it works
#15 · 16y ago
Posts 1–15 of 15 · Page 1 of 1

Post a Reply

Similar Threads

  • [help]For each statement[Closed]By ppl2pass in Visual Basic Programming
    1Last post 16y ago
  • Hello. Need help for TS3.By iPrima in CrossFire Help
    17Last post 15y ago
  • help for my server!(again)By okaccll in Minecraft Help
    1Last post 15y ago
  • Please I really need help for my MW2 iSnipe modBy Coder91 in Call of Duty Modern Warfare 2 GSC Modding Help/Discussion
    17Last post 15y ago
  • Need help for a plugin!By vivamoi in Minecraft Help
    5Last post 14y ago

Tags for this Thread

None