Active TopicsActive Topics  Display List of Forum MembersMemberlist  Search The ForumSearch  HelpHelp
  RegisterRegister  LoginLogin
PowerHome General
 PowerHome Messageboard : PowerHome General
Subject Topic: Global Size V2 Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
BeachBum
Super User
Super User
Avatar

Joined: April 11 2007
Location: United States
Online Status: Offline
Posts: 1880
Posted: February 28 2009 at 11:12 | IP Logged Quote BeachBum

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 View BeachBum's Profile Search for other posts by BeachBum
 
jbbtex
Senior Member
Senior Member


Joined: February 15 2007
Location: United States
Online Status: Offline
Posts: 181
Posted: February 28 2009 at 18:38 | IP Logged Quote jbbtex

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 View jbbtex's Profile Search for other posts by jbbtex
 
BeachBum
Super User
Super User
Avatar

Joined: April 11 2007
Location: United States
Online Status: Offline
Posts: 1880
Posted: February 28 2009 at 20:41 | IP Logged Quote BeachBum

You got it same problem. Help Dave...

Edited by BeachBum - February 28 2009 at 23:45


__________________
Pete - X10 Oldie
Back to Top View BeachBum's Profile Search for other posts by BeachBum
 
dhoward
Admin Group
Admin Group
Avatar

Joined: June 29 2001
Location: United States
Online Status: Offline
Posts: 4447
Posted: March 01 2009 at 00:22 | IP Logged Quote dhoward

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 View dhoward's Profile Search for other posts by dhoward Visit dhoward's Homepage
 
BeachBum
Super User
Super User
Avatar

Joined: April 11 2007
Location: United States
Online Status: Offline
Posts: 1880
Posted: March 01 2009 at 10:07 | IP Logged Quote BeachBum

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 View BeachBum's Profile Search for other posts by BeachBum
 
dhoward
Admin Group
Admin Group
Avatar

Joined: June 29 2001
Location: United States
Online Status: Offline
Posts: 4447
Posted: March 01 2009 at 15:09 | IP Logged Quote dhoward

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 View dhoward's Profile Search for other posts by dhoward Visit dhoward's Homepage
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum