Omnimaga: The Coders Of Tomorrow
Welcome, Guest. Please login or register.
 
Omnimaga: The Coders Of Tomorrow
19 May, 2013, 15:44:06 *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   home   news downloads projects tutorials misc forums rules new posts irc about Login Register  
+-OmnomIRC

You must Register, be logged in and have at least 40 posts to use this shout-box! If it still doesn't show up afterward, it might be that OmnomIRC is disabled for your group or under maintenance.

Note: You can also use an IRC client like mIRC, X-Chat or Mibbit to connect to an EFnet server and #omnimaga.

Pages: [1]   Go Down
  Print  
Author Topic: Question about usage of the GetCalc() command. -  (Read 263 times) Bookmark and Share
0 Members and 1 Guest are viewing this topic.
Link
LV4 Regular (Next: 200)
****
Offline Offline

Gender: Male
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

View Profile WWW
« 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
Eternally Young Scarlet Moon
LV12 Extreme Poster (Next: 5000)
************
Offline Offline

Gender: Male
Last Login: 06 May, 2013, 16:01:45
Date Registered: 15 October, 2010, 04:29:49
Location: Arden, NC
Posts: 3694


Total Post Ratings: +260

View Profile
« Reply #1 on: 30 August, 2012, 19:30:05 »
0

Quote from: Axe Parser v 1.1.2 Commands
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. Smiley
Logged

Project Redemption....

My project progresses:HERE
My Pastebin stuffs:HERE
Check your rate: HERE
My Animations: HERE
Spoiler for Images :D:

ノ◕ヮ◕)ノ:・゚ 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 Offline

Gender: Male
Last Login: Today at 03:39:24
Date Registered: 19 May, 2009, 08:00:00
Location: The Universe
Posts: 7813


Total Post Ratings: +706

View Profile WWW
« 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 Offline

Gender: Male
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

View Profile WWW
« Reply #3 on: 30 August, 2012, 19:38:01 »
0

Okay, thanks mate. Appreciate it!
Logged

Hayleia
Programming Absol
LV11 Super Veteran (Next: 3000)
***********
Offline Offline

Last Login: Yesterday at 09:26:23
Date Registered: 01 June, 2011, 20:12:47
Location: ud-ud ?
Posts: 2043


Total Post Ratings: +254

View Profile
« 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 Wink

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 Wink
« Last Edit: 30 August, 2012, 20:25:37 by Hayleia » Logged





Spoiler for what I am according to...:
me: useless
Pokemon Test: an Absol
turiqwalrus: an eggplant
p2: A HUMAN BEING !
Blackpilar and p2: iplantonlyplantwantplanttoplantknowplantifplantyouplantareplantaplantboyplantorplantaplantgirlplant
click here to know where you got your last +1s
Deep Thought
So much to do, so much time, so little motivation
Administrator
LV13 Extreme Addict (Next: 9001)
*
Offline Offline

Gender: Male
Last Login: Today at 03:39:24
Date Registered: 19 May, 2009, 08:00:00
Location: The Universe
Posts: 7813


Total Post Ratings: +706

View Profile WWW
« Reply #5 on: 30 August, 2012, 20:27:05 »
0

Close enough Tongue I always forget about archived stuff.

(By the way, you can save twelve bytes by saving "appvTEST" to Str1 or something.)
Logged




Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by EzPortal
Powered by MySQL Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Powered by PHP
Page created in 0.235 seconds with 30 queries.
Skin by DJ Omnimaga edited from SMF default theme with the help of tr1p1ea.
All programs, games and songs avaliable on this website are property of their respective owners.
Best viewed in Opera, Firefox, Chrome and Safari with a resolution of 1024x768 or above.