Sign in to follow this  
Followers 0
syno

Clever arrays

5 posts in this topic

Hi guys

I have an array in the form:

Local $find[5] = ["1", "2", "3", _ 
                        "4", "5"......etc]

However I have exceeded the maximum length of a single script line of 4,095 and I am concatenating my string within the array. Is there a clever way of using an array as so I do not have too use multiple arrays (using multiple variables) to break down my code. I want to keep the same variable you see...

Your thoughts or suggestions would be appreciated

Thanks :D

Share this post


Link to post
Share on other sites



Local $find[5]
   $find[0] = "1"
   $find[1] = "2"
   $find[2] = "3"
   $find[3] = "4"
   $find[4] = "5"
   ... etc.

Is exactly the same as your code, only on many lines.

Mat

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

Mat's looks good if none of the individual elements are too big, but it's just the accumulation of them. If you have one single element that's rediculously long it looks like long lines choke with "_" and "_ &", so try "&="?

Local $find[5] = ["1", "2", "3", _ 
    "4", "Temporary place holder"]

$find[4]="3.1415926535 8979323846 2643383279 5028841971 69399375105820974944 5923078164 0628620899 8628034825 34211706798214808651 3282306647 0938446095 5058223172 5359408128 4811174502 8410270193 8521105559 6446229489 54930381964428810975 6659334461 2847564823 3786783165 27120190914564856692 3460348610 4543266482 1339360726 02491412737245870066 0631558817 4881520920 9628292540 91715364367892590360 0113305305 4882046652 1384146951 94151160943305727036 5759591953 0921861173 8193261179 31051185480744623799 6274956735 1885752724 8912279381 83011949129833673362 4406566430 8602139494 6395224737 19070217986094370277 0539217176 2931767523 8467481846 76694051320005681271 4526356082 7785771342 7577896091 73637178721468440901 2249534301 4654958537 1050792279 68925892354201995611 2129021960 8640344181 5981362977 47713099605187072113 4999999837 2978049951 0597317328 16096318595024459455 3469083026 4252230825 3344685035 26193118817101000313 7838752886 5875332083 8142061717 76691473035982534904 2875546873 1159562863 8823537875 93751957781857780532 1712268066 1300192787 6611195909 2164201989 3809525720 1065485863 2788659361 5338182796 82303019520353018529 6899577362 2599413891 2497217752 83479131515574857242 4541506959 5082953311 6861727855 88907509838175463746 4939319255 0604009277 0167113900 98488240128583616035 6370766010 4710181942 9555961989 46767837449448255379 7747268471 0404753464 6208046684 25906949129331367702 8989152104 7521620569 6602405803 81501935112533824300 3558764024 7496473263 9141992726 04269922796782354781 6360093417 2164121992 4586315030 28618297455570674983 8505494588 5869269956 9092721079 75093029553211653449 8720275596 0236480665 4991198818 3479775356 8164706001 6145249192 1732172147 7235014144 19735685481613611573 5255213347 5741849468 4385233239 07394143334547762416 8625189835 6948556209 9219222184 27255025425688767179 0494601653 4668049886 2723279178 60857843838279679766 8145410095 3883786360 9506800642 25125205117392984896 0841284886 2694560424 1965285022 21066118630674427862 2039194945 0471237137 8696095636 43719172874677646575 7396241389 0865832645 9958133904 7802759009 9465764078 9512694683 9835259570 9825822620 5224894077 2671947826 8482601476 9909026401 3639443745 53050682034962524517 4939965143 1429809190 6592509372 21696461515709858387 4105978859 5977297549 8930161753 92846813826868386894 2774155991 8559252459 5395943104 99725246808459872736 4469584865 3836736222 6260991246 08051243884390451244 1365497627 8079771569 1435997700 12961608944169486855 5848406353 4220722258 2848864815 84560285060168427394 5226746767 8895252138 5225499546 66727823986456596116 3548862305 7745649803 5593634568 17432411251507606947 9451096596 0940252288 7971089314 56691368672287489405 6010150330 8617928680 9208747609 17824938589009714909 6759852613 6554978189 3129784821 68299894872265880485 7564014270 4775551323 7964145152 37462343645428584447 9526586782 1051141354 7357395231 13427166102135969536 2314429524 8493718711 0145765403 59027993440374200731 0578539062 1983874478 0847848968 3321445713 8687519435 0643021845 3191048481 0053706146 80674919278191197939 9520614196 6342875444 0643745123 7181921799 9839101591 9561814675 1426912397 4894090718 64942319615679452080 9514655022 5231603881 9301420937 62137855956638937787 0830390697 9207734672 2182562599 66150142150306803844 7734549202 6054146659 2520149744 28507325186660021324 3408819071 0486331734 6496514539 05796268561005508106 6587969981 6357473638 4052571459 10289706414011097120 6280439039 7595156771 5770042033 7869936007 2305587631 7635942187 3125147120 5329281918 2618612586 7321579198 4148488291 6447060957 5270695722 09175671167229109816 9091528017 3506712748 5832228718 3520935396 5725121083 5791513698 8209144421 0067510334 6711031412 6711136990 8658516398 3150197016 5151168517 1437657618 3515565088 4909989859 9823873455 2833163550 7647918535 8932261854 8963213293 3089857064 2046752590 7091548141 6549859461 6371802709 8199430992 4488957571 28289059232332609729 9712084433 5732654893 8239119325 9746366730 5836041428 1388303203 8249037589 8524374417 0291327656 1809377344"

$find[4]&= " 4030707469 2112019130 2033038019 7621101100 4492932151 6084244485 9637669838 9522868478 3123552658 2131449576 8572624334 4189303968 6426243410 7732269780 2807318915 4411010446 8232527162 0105265227 2111660396"

ConsoleWrite($find[4]&@crlf)
Edited by TurionAltec

Share this post


Link to post
Share on other sites

Oh ya....

I find the simplest answers are always the best...

Thanks

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0