Mirage Source

Free ORPG making software.
It is currently Thu Mar 28, 2024 11:59 am

All times are UTC




Post new topic Reply to topic  [ 446 posts ]  Go to page 1, 2, 3, 4, 5 ... 18  Next
Author Message
 Post subject: vbNullString
PostPosted: Fri Dec 29, 2006 6:48 pm 
Offline
Submit-Happy
User avatar

Joined: Fri Jun 16, 2006 7:01 am
Posts: 2768
Location: Yorkshire, UK
Can't let LGM give all the Knowledge ><

vbNullString > ""


Top
 Profile  
 
 Post subject:
PostPosted: Fri Dec 29, 2006 6:53 pm 
Offline
Persistant Poster
User avatar

Joined: Tue May 30, 2006 2:07 am
Posts: 836
Location: Nashville, Tennessee, USA
Google Talk: rs.ruggles@gmail.com
How much faster is vbNullString? Is there any way to test it?

_________________
I'm on Facebook! Google Plus My Youtube Channel My Steam Profile

Image


Top
 Profile  
 
 Post subject:
PostPosted: Fri Dec 29, 2006 6:59 pm 
Offline
Knowledgeable

Joined: Fri Aug 25, 2006 6:40 pm
Posts: 132
umm i think thats already in one of the posts i did.


edited part

no no i looked its there under

Optimize string handling in Visual Basic 6.0



Well i think i got everythign but i would read thou them all if i was you. could learn somthing.

and find things i dont have.

well i enlarged vbnullstring part for you two.

_________________
http://spirea.flphost.com come and join today i got flash games lol.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Dec 29, 2006 8:11 pm 
Offline
Submit-Happy
User avatar

Joined: Fri Jun 16, 2006 7:01 am
Posts: 2768
Location: Yorkshire, UK
><

Well, there was no way I was going to read everything you copied and pasted from another site.

I think you should have just posted a link to the site you got it from -_-;;


Top
 Profile  
 
 Post subject:
PostPosted: Fri Dec 29, 2006 8:17 pm 
Offline
Knowledgeable

Joined: Fri Aug 25, 2006 6:40 pm
Posts: 132
umm its more than one site put together in each post lol i worked on it in word pad before i put it on there lol.

_________________
http://spirea.flphost.com come and join today i got flash games lol.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Dec 29, 2006 8:38 pm 
Offline
Knowledgeable
User avatar

Joined: Mon Jul 24, 2006 2:04 pm
Posts: 339
I wouldn't really worry too much about these kinds of optimizations unless you are very, very desperate for speed (or the routine is being used a few hundred times per second). When saying "" < vbNullString, we're basically saying 0.001ms < 0.0008ms. Point being, slightly slower then fast is still fast. :wink:

_________________
NetGore Free Open Source MMORPG Maker


Top
 Profile  
 
 Post subject:
PostPosted: Fri Dec 29, 2006 9:20 pm 
Offline
Submit-Happy
User avatar

Joined: Fri Jun 16, 2006 7:01 am
Posts: 2768
Location: Yorkshire, UK
Spodi wrote:
I wouldn't really worry too much about these kinds of optimizations unless you are very, very desperate for speed (or the routine is being used a few hundred times per second). When saying "" < vbNullString, we're basically saying 0.001ms < 0.0008ms. Point being, slightly slower then fast is still fast. :wink:


I am not saying you should just go through your source and replace all '""' with vbNullString (but you can in the right circumstances), but that you should get into the habit of writing it instead of "".

Good habits are very valuable in programming


Top
 Profile  
 
 Post subject:
PostPosted: Fri Dec 29, 2006 10:07 pm 
Offline
Knowledgeable
User avatar

Joined: Mon Jul 24, 2006 2:04 pm
Posts: 339
Quote:
Good habits are very valuable in programming


Very true.

_________________
NetGore Free Open Source MMORPG Maker


Top
 Profile  
 
 Post subject:
PostPosted: Fri Dec 29, 2006 10:09 pm 
Offline
Regular

Joined: Mon May 29, 2006 9:47 pm
Posts: 49
You could just hit replace all, if you wanted to, but like Spodi says, it really doesn't make all that much of a difference.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Dec 29, 2006 11:05 pm 
Offline
Submit-Happy
User avatar

Joined: Fri Jun 16, 2006 7:01 am
Posts: 2768
Location: Yorkshire, UK
Johnman wrote:
You could just hit replace all, if you wanted to, but like Spodi says, it really doesn't make all that much of a difference.


Some instances of '""' are needed.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Dec 29, 2006 11:06 pm 
Offline
Community Leader
User avatar

Joined: Mon May 29, 2006 1:00 pm
Posts: 2538
Location: Sweden
Google Talk: johansson_tk@hotmail.com
Kite wrote:
Johnman wrote:
You could just hit replace all, if you wanted to, but like Spodi says, it really doesn't make all that much of a difference.

Some instances of '""' are needed.

Actually no. It's only used for the Quote = """" And I dont even think that constant is used.

_________________
I'm on Facebook!My Youtube Channel Send me an email
Image


Top
 Profile  
 
 Post subject:
PostPosted: Fri Dec 29, 2006 11:15 pm 
Offline
Pro

Joined: Mon May 29, 2006 1:40 pm
Posts: 430
William wrote:
Kite wrote:
Johnman wrote:
You could just hit replace all, if you wanted to, but like Spodi says, it really doesn't make all that much of a difference.

Some instances of '""' are needed.

Actually no. It's only used for the Quote = """" And I dont even think that constant is used.


Actually no. I believe some instances of "" are needed, I don't remember which ones, but there was a discussion about this earlier where this came up.

:P


Top
 Profile  
 
 Post subject:
PostPosted: Fri Dec 29, 2006 11:18 pm 
Offline
Community Leader
User avatar

Joined: Mon May 29, 2006 1:00 pm
Posts: 2538
Location: Sweden
Google Talk: johansson_tk@hotmail.com
Oh yeah, guess it can be bad to use vbNullString when you save data with PutVar. Not sure thought, for example:

Call PutVar(FileName, "NPC" & NpcNum, "Name", vbNullString)

Still it should work.. so I dont know. :P

_________________
I'm on Facebook!My Youtube Channel Send me an email
Image


Top
 Profile  
 
 Post subject:
PostPosted: Fri Dec 29, 2006 11:26 pm 
Offline
Submit-Happy
User avatar

Joined: Fri Jun 16, 2006 7:01 am
Posts: 2768
Location: Yorkshire, UK
Well, I never changed it on Vanilla Mirage, but on my source I remember having several instances of '""' which needed to be kept.

Otherwise the thing just didn't work ><


Top
 Profile  
 
 Post subject:
PostPosted: Fri Dec 29, 2006 11:29 pm 
Offline
Community Leader
User avatar

Joined: Mon May 29, 2006 1:00 pm
Posts: 2538
Location: Sweden
Google Talk: johansson_tk@hotmail.com
I think i changed all in my source, and that seems to work just fine :P

_________________
I'm on Facebook!My Youtube Channel Send me an email
Image


Top
 Profile  
 
 Post subject:
PostPosted: Sat Dec 30, 2006 12:00 am 
Offline
Pro

Joined: Mon May 29, 2006 1:40 pm
Posts: 430
vbNullString is just that, a null string, "" is an empty string, fairly different...
vbNullString doesn't really take any more space, "" does.


Top
 Profile  
 
 Post subject: Re: vbNullString
PostPosted: Tue Dec 14, 2021 3:52 pm 
Online
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 456164
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.ruинфоhttp://semifinishmachining.ruhttp://spicetrade.ruhttp://spysale.ru
http://stungun.ruhttp://tacticaldiameter.ruhttp://tailstockcenter.ruhttp://tamecurve.ruhttp://tapecorrection.ruhttp://tappingchuck.rutaskreasoning.ruhttp://technicalgrade.ruhttp://telangiectaticlipoma.ruhttp://telescopicdamper.ruсайтhttp://temperedmeasure.ruhttp://tenementbuilding.rutuchkashttp://ultramaficrock.ruhttp://ultraviolettesting.ru


Top
 Profile  
 
 Post subject: Арты
PostPosted: Thu Dec 23, 2021 12:09 pm 
Offline
Regular

Joined: Thu Nov 18, 2021 1:27 pm
Posts: 30
Location: Россия
Google Talk: :Google talk&quot
Самые нужные рисунки и арты на сайте https://rolan.club

_________________
https://rolan.club


Top
 Profile  
 
 Post subject: Арты
PostPosted: Thu Dec 23, 2021 12:10 pm 
Offline
Regular

Joined: Thu Nov 18, 2021 1:27 pm
Posts: 30
Location: Россия
Google Talk: :Google talk&quot
Самые нужные рисунки и арты на сайте https://rolan.club

_________________
https://rolan.club


Top
 Profile  
 
 Post subject: Арты
PostPosted: Thu Dec 23, 2021 12:13 pm 
Offline
Regular

Joined: Thu Nov 18, 2021 1:27 pm
Posts: 30
Location: Россия
Google Talk: :Google talk&quot
Самые нужные рисунки и арты на сайте https://rolan.club

_________________
https://rolan.club


Top
 Profile  
 
 Post subject: Арты
PostPosted: Thu Dec 23, 2021 12:14 pm 
Offline
Regular

Joined: Thu Nov 18, 2021 1:27 pm
Posts: 30
Location: Россия
Google Talk: :Google talk&quot
Самые нужные рисунки и арты на сайте https://rolan.club

_________________
https://rolan.club


Top
 Profile  
 
 Post subject: Арты
PostPosted: Thu Dec 23, 2021 12:15 pm 
Offline
Regular

Joined: Thu Nov 18, 2021 1:27 pm
Posts: 30
Location: Россия
Google Talk: :Google talk&quot
Самые нужные рисунки и арты на сайте https://rolan.club

_________________
https://rolan.club


Top
 Profile  
 
 Post subject: Арты
PostPosted: Thu Dec 23, 2021 12:19 pm 
Offline
Regular

Joined: Thu Nov 18, 2021 1:27 pm
Posts: 30
Location: Россия
Google Talk: :Google talk&quot
Самые нужные рисунки и арты на сайте https://rolan.club

_________________
https://rolan.club


Top
 Profile  
 
 Post subject: Арты
PostPosted: Thu Dec 23, 2021 12:22 pm 
Offline
Regular

Joined: Thu Nov 18, 2021 1:27 pm
Posts: 30
Location: Россия
Google Talk: :Google talk&quot
Самые нужные рисунки и арты на сайте https://rolan.club

_________________
https://rolan.club


Top
 Profile  
 
 Post subject: Арты
PostPosted: Thu Dec 23, 2021 12:25 pm 
Offline
Regular

Joined: Thu Nov 18, 2021 1:27 pm
Posts: 30
Location: Россия
Google Talk: :Google talk&quot
Самые нужные рисунки и арты на сайте https://rolan.club

_________________
https://rolan.club


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 446 posts ]  Go to page 1, 2, 3, 4, 5 ... 18  Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 9 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:  
cron
Powered by phpBB® Forum Software © phpBB Group