Raised This Month: $ Target: $400
 0% 

Setting Strings


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
MrPickles
Senior Member
Join Date: Aug 2022
Location: Colombia
Old 09-28-2022 , 00:36   Re: Setting Strings
Reply With Quote #3

Quote:
Originally Posted by fysiks View Post
I would normally do it the last way. I doubt there would be any significant performance difference but if the list gets long, it can make the last method much easier to update and maintain.

Even if you do need a switch for other things, you can simply use the switch for the things that absolutely need it.
Here are some others to consider:

The function will be called several times in short periods
The list will be much longer (at least 20)

based on this, it would be better to put the string directly, or call the variable that contains the saved string
MrPickles is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 15:33.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode