Is there limitation for @SetEnvironme nt function. Is there a way to increase. ?
Thanks
Jacob
Is there limitation for @SetEnvironme nt function. Is there a way to increase. ?
Thanks
Jacob
Subject: Character limitation for @SetEnvironment function
255.No.
It’s in the knowledge base if you search technotes for limitations and environment.
Subject: Character limitation for @SetEnvironment function
Jacob,If you want to store more than 255 characters as environment variables, you could split it up amongst multiple variables…
ie. something like this:
MyLongVar := “aslfalsfjalsfj lj dj flja;fkjd ;laje;wlfj ;oiwefj e;fjijtr o wtiupo3uvnuntrvp9 83utnvw98utvnpw 8tvhnpowtvuhn porthvnwpotivhnpowetvunopweth vnotvportviuwen proituvnoepwtuv notunoitnfjonfdskfvkjsdfh vlskadfh vneliotu en9t8ynw8943nvfihrvniofjniorfvu u o gpur poreu r0ou ore ut03wtugrjup98ut4894uihogihjoif uhur reut 9rt8u984 tr9u 09tu04tu9 [093ut 09ugt0w9ut [09wu t039tu [0”;
EnvVar01 := @Middle( MyLongVar; 1; 255 );
EnvVar02 := @Middle( MyLongVar; 256; 255 );
EnvVar03 := @Middle( MyLongVar; 511; 255 );
EnvVar04 := @Middle( MyLongVar; 766; 255 );
EnvVar05 := @Middle( MyLongVar; 1021; 255 );
EnvVar06 := @Middle( MyLongVar; 1276; 255 );
@SetEnvironment( “EnvVar01”; EnvVar01 );
@SetEnvironment( “EnvVar02”; EnvVar02 );
@SetEnvironment( “EnvVar03”; EnvVar03 );
@SetEnvironment( “EnvVar04”; EnvVar04 );
@SetEnvironment( “EnvVar05”; EnvVar05 );
@SetEnvironment( “EnvVar06”; EnvVar06 );
And then you could re-create the variable using a bunch of @GetEnvironment calls.
Hope this helps.
Rob Chillingworth