Author |
|
BeachBum Super User
Joined: April 11 2007 Location: United States
Online Status: Offline Posts: 1880
|
Posted: February 28 2009 at 11:12 | IP Logged
|
|
|
Is there a restriction on Global size in V2? I have a macro that no longer works and I have narrowed it down to the maximum I can load into a Global is 1024.
__________________ Pete - X10 Oldie
|
Back to Top |
|
|
jbbtex Senior Member
Joined: February 15 2007 Location: United States
Online Status: Offline Posts: 181
|
Posted: February 28 2009 at 18:38 | IP Logged
|
|
|
Pete,
It looks like there is.
I use a GV to store weather data from a web page. I only care about today's forecast which is always within the first few hundred characters.
I just looked at the GV and it ends at 1024.
__________________ Brady
"Never tell people how to do things. Tell them what to do and they will surprise you with their ingenuity." - Gen. George S. Patton
|
Back to Top |
|
|
BeachBum Super User
Joined: April 11 2007 Location: United States
Online Status: Offline Posts: 1880
|
Posted: February 28 2009 at 20:41 | IP Logged
|
|
|
You got it same problem. Help Dave...
Edited by BeachBum - February 28 2009 at 23:45
__________________ Pete - X10 Oldie
|
Back to Top |
|
|
dhoward Admin Group
Joined: June 29 2001 Location: United States
Online Status: Offline Posts: 4447
|
Posted: March 01 2009 at 00:22 | IP Logged
|
|
|
Global vars are stored within the database and they've always been limited to 1024 characters .
However, depending upon what you are doing, you may be able to use a global system var. Version 2 has 100 global system vars and can be accessed using the ph_getvar_? and ph_setvar_? functions. The first parameter should be a 3 for this type of var. These vars are stored in memory and can be virtually an unlimited length.
Dave.
|
Back to Top |
|
|
BeachBum Super User
Joined: April 11 2007 Location: United States
Online Status: Offline Posts: 1880
|
Posted: March 01 2009 at 10:07 | IP Logged
|
|
|
Dave, I was using LOCALs when the problem cropped up. Have they also been 1024 all along or is the Weather data getting longer?
__________________ Pete - X10 Oldie
|
Back to Top |
|
|
dhoward Admin Group
Joined: June 29 2001 Location: United States
Online Status: Offline Posts: 4447
|
Posted: March 01 2009 at 15:09 | IP Logged
|
|
|
Pete,
LOCALS are in memory and basically have no limit. However, its possible that some function that you're using on the LOCAL may be truncating the data for some reason. If you could post some snippets of what you're doing, I'll look up and see if anything may be responsible for the truncation.
Dave.
|
Back to Top |
|
|