Link
LV4 Regular (Next: 200)
  
Offline
Gender: 
Last Login: Yesterday at 23:49:04
Date Registered: 28 August, 2012, 22:32:37
Location: Canada/USA
Posts: 116
Topic starter
Total Post Ratings: +4
|
 |
« on: 30 August, 2012, 19:27:44 » |
0
|
Okay, I created a new appvar using GetCalc like so: 1 2
| GetCalc("appvTest",100)->T
|
In my other programs, how do I check if this App-var has already been made? Will it work by using the If command? or something else?
|
|
|
|
« Last Edit: 30 August, 2012, 19:29:39 by The Elite Noob »
|
Logged
|
|
|
|
|
Yeong
|
 |
« Reply #1 on: 30 August, 2012, 19:30:05 » |
0
|
GetCalc(PTR) Finds the object who's name is pointed to and returns a pointer to the start of its data, or zero if it was archived or not found.
I hope this helped you. 
|
|
|
|
|
Logged
|
Project Redemption.... My project progresses: HEREMy Pastebin stuffs: HERECheck your rate: HEREMy Animations: HEREノ◕ヮ◕)ノ:・゚ PENGUIN WAVE!!:„ø¤º°¨ ¨°º¤KEEP THE PENGUIN GOING ¸„ø¤º°¨ ¨°º¤øº LETS GO PENGUIN !¤¤º°¨¨°º¤øº¤ø„¸¸ø¤º°¨„ ø¤º°¨¨°º
|
|
|
Deep Thought
So much to do, so much time, so little motivation
Administrator
LV13 Extreme Addict (Next: 9001)
Offline
Gender: 
Last Login: Today at 03:39:24
Date Registered: 19 May, 2009, 08:00:00
Location: The Universe
Posts: 7813
Total Post Ratings: +706
|
 |
« Reply #2 on: 30 August, 2012, 19:31:40 » |
0
|
Yes, it's in Commands.html: GetCalc("appvTest") will return the pointer to it if it exists, else 0.
|
|
|
|
|
Logged
|
|
|
|
Link
LV4 Regular (Next: 200)
  
Offline
Gender: 
Last Login: Yesterday at 23:49:04
Date Registered: 28 August, 2012, 22:32:37
Location: Canada/USA
Posts: 116
Topic starter
Total Post Ratings: +4
|
 |
« Reply #3 on: 30 August, 2012, 19:38:01 » |
0
|
Okay, thanks mate. Appreciate it!
|
|
|
|
|
Logged
|
|
|
|
|
Hayleia
|
 |
« Reply #4 on: 30 August, 2012, 20:25:20 » |
0
|
Yes, it's in Commands.html: GetCalc("appvTest") will return the pointer to it if it exists, else 0.
Not exactly. It returns the pointer if it exists and if it is unarchived, and 0 if it is archived or if it doesn't exist  So what you may need is something like UnArchive "appvTEST" .does nothing if the appvar doesn't exist GetCalc("appvTEST")->V !If GetCalc("appvTEST",100)->V End
To be sure it is in RAM 
|
|
|
|
« Last Edit: 30 August, 2012, 20:25:37 by Hayleia »
|
Logged
|
|
|
|
Deep Thought
So much to do, so much time, so little motivation
Administrator
LV13 Extreme Addict (Next: 9001)
Offline
Gender: 
Last Login: Today at 03:39:24
Date Registered: 19 May, 2009, 08:00:00
Location: The Universe
Posts: 7813
Total Post Ratings: +706
|
 |
« Reply #5 on: 30 August, 2012, 20:27:05 » |
0
|
Close enough  I always forget about archived stuff. (By the way, you can save twelve bytes by saving "appvTEST" to Str1 or something.)
|
|
|
|
|
Logged
|
|
|
|
|