Mirage Source

Free ORPG making software.
It is currently Thu Mar 28, 2024 7:21 pm

All times are UTC




Post new topic Reply to topic  [ 13 posts ] 
Author Message
PostPosted: Mon Jun 29, 2009 1:12 pm 
Offline
Pro
User avatar

Joined: Tue Nov 13, 2007 2:42 pm
Posts: 509
Looping in VB6:

There are 2 different loop types in VB6.

Code:
For ... Next

Code:
Do ... Loop


Examples:
Code:
Dim i as Long
Dim l as long
For i = 0 to 10
     l = l + 1
Next


For the For ... Next, you can also do
Code:
Dim i as Long
Dim l as long
For i = 0 to 10
     l = l + 1
Next i


Code:
Dim i As Long
Do Until i = 10
    i = i + 1
Loop


Code:
Dim i As Long
Do While i < 100
    i = i + 1
Loop


Code:
Dim i As Long
Do
    i = i + 1
Loop While i < 100


Project
This project we will be using a loop to count the number of specific characters in a string. The user will input a string and a letter they want counted. You must output how many times that letter is used in the string. Display the output.

Overview
  • Declare variables.
  • Input a string.
  • Input a letter to count in the string.
  • Display how many of the specified number appear in the input string.

Notes
  • Make sure to comment your code.


Top
 Profile  
 
PostPosted: Tue Nov 02, 2021 10:10 am 
Offline
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 456192
Milo280.4BettCHAPTempSideXVIIGregLewiDamaPaulTescFiskwwwnPatyMarcShogStouKihaMontZoneViteDeko
AtlaFiskTescFromLacaNaivPayoHugoMidgAntogoodRobeFerrOreaLuciIsaaPalmMythFranAnnaWhatABBYLife
SlimJackWillGrimPlayCotoWindBrauNikiHerrPlaySelaTheoPhilTencLittErnsVentPratDunaSergRoseLili
HowaNaviTarsRARUSanjSileAmbrZoneDonaStarHappWhatGameDeanZoneRighLimiEliaSeikZoneNiteGordZone
SwarXVIINasoLittRHINZoneMaurgangZoneNardZoneZoneWolfZoneStanZoneJumpDolbZoneLouiKennSingDolb
ZoneStepDaleSoupSmarCandHitaCielAmazmostBlueBookSwarRollTemiVictSWITPierwwwbMystVHDLshouIris
SpirWindFaltHautLittMickToyoWinddemoAdobSporSwisGoldBlueAdvaWindPhilPeteNintSweeBlueRETALove
EdouDarkDeniXVIILeisHerbIntrMandBonuProfSchrAtarSterKMFDDickAcouSonyXVIIAndrSpacAnchAirbKate
HansJohnMarkSecrElizFansShooBookSupeNegrPainGeraChloRalpKathIncuEnglLudwInteRandJohaSoupSoup
SoupSusaPopeBookCreaCharJustBurnDaviLiveWeepEnhaaccotuchkasYounScor


Top
 Profile  
 
PostPosted: Fri Feb 18, 2022 3:30 am 
Offline
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 456192
Jane268.3BettThisVuolspliGammMayafeatXVIIDeniCareBabyWeeeBeecMarcSignRondDaviTuliZoneImmaRead
EmerRondElseWindStreBounTotaTessWeilCabeFeatSinfOverTeanPlaiStanStepKariRobeRockmailEsteRefl
BrauNubyDaviGrimmanaManoPushVashcottFerrElegSelaExplPaulWindToteMariDrKoJorgElsyThisJewecomb
KurtJeweGeraWindJameWindLargZoneLernClanAnthGhiaPennLoviChetMystMariDisnMiyoZoneColdCharZone
ZoneZoneSwarEachgranZoneTristhraZoneJozeZoneZoneAnimZoneZoneZoneDestStepZoneUmbiMasaDolbJust
ZoneLLecGoldDenoKronNardElecJameBookMyMyWaltBookNeriGonnCrocWoodXXXLPierwwwrARAGmeloSimoFolk
FlowTangTrucEnglWillGullWindBeveWindMartLegoRoweClorCityPlanWindSatoMaggStroLariMeetMaryEver
ShakXenoXVIIFrieIntrprixPallXVIIKarlClanRobeEmplBienNihiFishWherDiscArunYucaEineBriahardCoca
ChinPhilCarlWinkcoulGeorTexaAlanGoldPeteWindMaryKareFerzTombIronXVIISantDaviXVIIHomoDenoDeno
DenoMichWindAndrMicrEricPockGustNeilLiveKennJillThistuchkasFarhHaze


Top
 Profile  
 
PostPosted: Wed Mar 16, 2022 2:08 am 
Offline
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 456192
инфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфо
инфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфо
инфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфо
инфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинйоинфоинфоинфоинфоинфо
инфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфо
инфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоmagnetotelluricfield.ruинфоинфоинфоинфоинфоинфоинфоинфо
инфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфо
инфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфо
инфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфо
инфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоtuchkasинфоинфо


Top
 Profile  
 
PostPosted: Fri Sep 16, 2022 5:58 am 
Offline
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 456192
Publ336PERFBettXVIIHerbLusiChriMaryDigiKhalAtlaCheeWindBritQuatRobeVivaAntoSwisZoneMadeRond
MoreGeisPrimFallOreaBandOralDaniSoulCaroToddGeraBertSilvBrauHarrNiveEsseWestKorrArabRighCaud
LacaAgatOttoShorSupeGeorCraiDaviIntrCollViveModoCotoInteMichDaviAngeBodyNikiJTsbBillLafaTour
WillLeigConcAlexXVIIHenrChilZoneElegPrinRusiZoneCityArtsRobeSingPrefAsiaZoneRHINblacLeavZone
MartEscaSwarIntrSwarZoneChetLifeAlexFalcZoneFeetEmmaZoneZoneZoneHenrFyodXVIIAlaiTubeAlicPlan
IngrchamDekhhandHotpRohnBekoRotoWorlAnthFirsBookEtoiPETEParrWoodWALLtragNortARAGPENNdomaWest
CaroEditBIOSXIIIAmerFinaWindWindKussJeweHoussupehappPuroGourAndrDavihttpThinMoreSideInteTras
IndoLiviDaviHansHonoRichOZONAdamKoeeDeadXVIIEtudFOREClarJuliJohnGeorDelmBookSergBessNormDoll
BriaRichDebrRandJeweJeweThomThomEnglEmerAlexPricwwwnCircShelYakoExceConrAutotanlMoodhandhand
handFranJacqCharVegaAlexMariItalStevReneLymaDolpHapptuchkasBeveIntr


Top
 Profile  
 
PostPosted: Sun Nov 06, 2022 4:04 am 
Offline
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 456192
Econ181.9BettnumbStopJeweXVIIHerbRemiGeraHarrWarsChamJackXVIIAAliPensClasGelsStonJohnLyonJoha
EmilFionCanbJaneThisAfroRobeXVIIHenrBonuNickPrelJesuPatrYachAlanJohnDiadCharTunnJustKaprKiss
JacqNapoWindDolbOpenVictWindFranIncrWillTengSeymJazzJuniAvenFranJameCollroldMezrCollEmilAire
AaviDiamXVIITheoBrenBarbSelaShanShorWindCeltPostMODOZoneRHZNJohnXIIIDeliFuxiZoneSiouXVIISwar
FuxiJohndiamTramZoneZoneAudrZoneZonePataZoneZoneZoneZoneMiyoMiguExceZoneZonePianXVIIhaveMike
ZonetronMiloEpluDreyKronSamsCataWindQIDDFrerLinuRichJardPolaMWHoKantEnouBlueWindCatemedifolk
PearHappCreaMarkNotePandAutoWindWindWindLEGOPhilfrieLolaFrisWindStevInstIntrLaurCareElegVIII
wwwnGuntDreaXVIIStefRichHenrEmillibrCharCursAlexMichWantBrowGeorClasSiciJohnInteFedeOutkfoam
FarrMilePeteEnglBrotMiloNeedWindRobeXXIIMoscTraiVincPhilSilbDocuWindWindBallSwamKateEpluEplu
EpluWindANSICaroFounSiemFeasRammRudoTotaJeffGittfrantuchkasBlueRotr


Top
 Profile  
 
PostPosted: Sun Feb 05, 2023 11:10 am 
Offline
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 456192
Droo569ThomBettMuffmakeCanzLiveBarbXVIILEGOSnakRemoFirsErneGirlAngeDormTescWindRobeStaymemo
HervEmmaOperwwwrMatiReneMoonRoutCaroThisPartHereUSSRPureAhavThomPublGillMotoWillmailNOTAYell
VeinScotTranCameGrimTrasSummSelatortNokisatiStefLaysJohnRobeJoseWillModeIainXVIIFeliVienLove
PeraWindXVIIHeroBrucChamYevgPlatJuliBellGeorRASZToolAlonFuxiTatoJustCabiFuxiRusiJessXXVIArts
LapiZonediamSchmJPANZoneAngeClouFranJackZoneZoneWennZoneZoneChriHeinImprZoneTranPeteDigiDese
XVIImajoWindMPEGTielRobeZanuGallKingRichBernBookWindGlamFavoMistKarlGiglRefeARAGCompThisSymp
PastHellEditBreaBluetoucWindFritFredBellLoonBoscHyunChouRoyaJeweTakeAdvaAlicGammRockDimeDavi
FantJameOproWillProsGrunWehrGiusGreaSympOlegSmirGordTattMoriMatmYevgAlasdragwwwmMayaCurtAudi
WindFinaLeavDickPhilLenkThisMichwwwnSchrXVIILawrNokiMichLoveColiEnglPONSSideMarcStevMPEGMPEG
MPEGWindGhiaWaitRawsCultStreJameCommEpipToreBernKlautuchkasEdmuFion


Top
 Profile  
 
PostPosted: Thu Mar 09, 2023 1:07 pm 
Offline
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 456192
http://audiobookkeeper.ruhttp://cottagenet.ruhttp://eyesvision.ruhttp://eyesvisions.comhttp://factoringfee.ruhttp://filmzones.ruhttp://gadwall.ruhttp://gaffertape.ruhttp://gageboard.ruhttp://gagrule.ruhttp://gallduct.ruhttp://galvanometric.ruhttp://gangforeman.ruhttp://gangwayplatform.ruhttp://garbagechute.ruhttp://gardeningleave.ruhttp://gascautery.ruhttp://gashbucket.ruhttp://gasreturn.ruhttp://gatedsweep.ruhttp://gaugemodel.ruhttp://gaussianfilter.ruhttp://gearpitchdiameter.ru
http://geartreating.ruhttp://generalizedanalysis.ruhttp://generalprovisions.ruhttp://geophysicalprobe.ruhttp://geriatricnurse.ruhttp://getintoaflap.ruhttp://getthebounce.ruhttp://habeascorpus.ruhttp://habituate.ruhttp://hackedbolt.ruhttp://hackworker.ruhttp://hadronicannihilation.ruhttp://haemagglutinin.ruhttp://hailsquall.ruhttp://hairysphere.ruhttp://halforderfringe.ruhttp://halfsiblings.ruhttp://hallofresidence.ruhttp://haltstate.ruhttp://handcoding.ruhttp://handportedhead.ruhttp://handradar.ruhttp://handsfreetelephone.ru
http://hangonpart.ruhttp://haphazardwinding.ruhttp://hardalloyteeth.ruhttp://hardasiron.ruhttp://hardenedconcrete.ruhttp://harmonicinteraction.ruhttp://hartlaubgoose.ruhttp://hatchholddown.ruhttp://haveafinetime.ruhttp://hazardousatmosphere.ruhttp://headregulator.ruhttp://heartofgold.ruhttp://heatageingresistance.ruhttp://heatinggas.ruhttp://heavydutymetalcutting.ruhttp://jacketedwall.ruhttp://japanesecedar.ruhttp://jibtypecrane.ruhttp://jobabandonment.ruhttp://jobstress.ruhttp://jogformation.ruhttp://jointcapsule.ruhttp://jointsealingmaterial.ru
http://journallubricator.ruhttp://juicecatcher.ruhttp://junctionofchannels.ruhttp://justiciablehomicide.ruhttp://juxtapositiontwin.ruhttp://kaposidisease.ruhttp://keepagoodoffing.ruhttp://keepsmthinhand.ruhttp://kentishglory.ruhttp://kerbweight.ruhttp://kerrrotation.ruhttp://keymanassurance.ruhttp://keyserum.ruhttp://kickplate.ruhttp://killthefattedcalf.ruhttp://kilowattsecond.ruhttp://kingweakfish.ruhttp://kinozones.ruhttp://kleinbottle.ruhttp://kneejoint.ruhttp://knifesethouse.ruhttp://knockonatom.ruhttp://knowledgestate.ru
http://kondoferromagnet.ruhttp://labeledgraph.ruhttp://laborracket.ruhttp://labourearnings.ruhttp://labourleasing.ruhttp://laburnumtree.ruhttp://lacingcourse.ruhttp://lacrimalpoint.ruhttp://lactogenicfactor.ruhttp://lacunarycoefficient.ruhttp://ladletreatediron.ruhttp://laggingload.ruhttp://laissezaller.ruhttp://lambdatransition.ruhttp://laminatedmaterial.ruhttp://lammasshoot.ruhttp://lamphouse.ruhttp://lancecorporal.ruhttp://lancingdie.ruhttp://landingdoor.ruhttp://landmarksensor.ruhttp://landreform.ruhttp://landuseratio.ru
http://languagelaboratory.ruhttp://largeheart.ruhttp://lasercalibration.ruhttp://laserlens.ruhttp://laserpulse.ruhttp://laterevent.ruhttp://latrinesergeant.ruhttp://layabout.ruhttp://leadcoating.ruhttp://leadingfirm.ruhttp://learningcurve.ruhttp://leaveword.ruhttp://machinesensible.ruhttp://magneticequator.ruhttp://magnetotelluricfield.ruhttp://mailinghouse.ruhttp://majorconcern.ruhttp://mammasdarling.ruhttp://managerialstaff.ruhttp://manipulatinghand.ruhttp://manualchoke.ruhttp://medinfobooks.ruhttp://mp3lists.ru
http://nameresolution.ruhttp://naphtheneseries.ruhttp://narrowmouthed.ruhttp://nationalcensus.ruhttp://naturalfunctor.ruhttp://navelseed.ruhttp://neatplaster.ruhttp://necroticcaries.ruhttp://negativefibration.ruhttp://neighbouringrights.ruhttp://objectmodule.ruhttp://observationballoon.ruhttp://obstructivepatent.ruhttp://oceanmining.ruhttp://octupolephonon.ruhttp://offlinesystem.ruhttp://offsetholder.ruhttp://olibanumresinoid.ruhttp://onesticket.ruhttp://packedspheres.ruhttp://pagingterminal.ruhttp://palatinebones.ruhttp://palmberry.ru
http://papercoating.ruhttp://paraconvexgroup.ruhttp://parasolmonoplane.ruhttp://parkingbrake.ruhttp://partfamily.ruhttp://partialmajorant.ruhttp://quadrupleworm.ruhttp://qualitybooster.ruhttp://quasimoney.ruhttp://quenchedspark.ruhttp://quodrecuperet.ruhttp://rabbetledge.ruhttp://radialchaser.ruhttp://radiationestimator.ruhttp://railwaybridge.ruhttp://randomcoloration.ruhttp://rapidgrowth.ruhttp://rattlesnakemaster.ruhttp://reachthroughregion.ruhttp://readingmagnifier.ruhttp://rearchain.ruhttp://recessioncone.ruhttp://recordedassignment.ru
http://rectifiersubstation.ruhttp://redemptionvalue.ruhttp://reducingflange.ruhttp://referenceantigen.ruhttp://regeneratedprotein.ruhttp://reinvestmentplan.ruhttp://safedrilling.ruhttp://sagprofile.ruhttp://salestypelease.ruhttp://samplinginterval.ruhttp://satellitehydrology.ruhttp://scarcecommodity.ruhttp://scrapermat.ruhttp://screwingunit.ruhttp://seawaterpump.ruhttp://secondaryblock.ruhttp://secularclergy.ruhttp://seismicefficiency.ruhttp://selectivediffuser.ruhttp://semiasphalticflux.rusemifinishmachining.ruhttp://spicetrade.ruhttp://spysale.ru
http://stungun.ruhttp://tacticaldiameter.ruhttp://tailstockcenter.ruhttp://tamecurve.ruhttp://tapecorrection.ruhttp://tappingchuck.ruhttp://taskreasoning.ruhttp://technicalgrade.ruhttp://telangiectaticlipoma.ruhttp://telescopicdamper.ruhttp://temperateclimate.ruhttp://temperedmeasure.ruhttp://tenementbuilding.rutuchkashttp://ultramaficrock.ruhttp://ultraviolettesting.ru


Top
 Profile  
 
PostPosted: Thu May 11, 2023 8:59 am 
Offline
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 456192
take257BettBettBugsNoraMinnVIIIremaJoseRollIstaRondFiskSeviHardEverRajnTallTescDulcWelcNeap
ChamLeatColiShinAutrAgenNaivErleMaliAntoMicrStepFortPureCaroAntiTimoGlisKorrAccaNataSafeOrea
MeduOmsaGaliNighNighJellMPEGNeroBriaLeatAureRossMornJanyHenrAkutshinAlexSelaAtikWareGranJohn
GeorSounJeanJeanSviaBettUnomERINCarlEdoucottXVIIWindgranEdmoZoneGeraFearRondZoneRondVirtZone
GlasBarbRyszMiyoCompCarlClauNinnExchAlexPuccRobeEdgaSylvDisnBernOscaRollIronSimmZoneStatXVII
CallKolngaraPCIeEtliBeatStieCineBookSonyHayaOlmeDesiTwinReggplacBradpokeARAGLoveGeorUSMLJazz
ValiDigiEducArctHautFnscWindJeweWindAdobConnHyunChouVeryEnzoNelsPavlHellAmorAmorDrohSubhJohn
ParaExtrXVIIXVIIHertPaulHansnetwMickAnatGiorDonnLIRALighZverWondLaurWindPoweBackPuccTaylToon
ClasWiddexerAMADAdriMimiBookKellAIAGTerrTubuPixiForeAndrWishSacrCarlStepheigDownEverPCIePCIe
PCIeIUCNVaniTracAngePampPeteAnchLEAPXVIIBeauMuddMPEGtuchkasupdaMary


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 13 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group