Gamestudio Links
Zorro Links
Newest Posts
Newbie Questions
by fairtrader. 12/05/23 10:32
Zorro Trader GPT
by TipmyPip. 12/04/23 11:34
Square root rule
by Smallz. 12/02/23 09:15
RTest not found error
by TipmyPip. 12/01/23 21:43
neural function for Python to [Train]
by TipmyPip. 12/01/23 14:47
Xor Memory Problem.
by TipmyPip. 11/28/23 14:23
Training with command line parameters
by TipmyPip. 11/26/23 08:42
Combine USD & BTC Pairs In Asset Loop
by TipmyPip. 11/26/23 08:30
AUM Magazine
Latest Screens
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Who's Online Now
6 registered members (AndrewAMD, alibaba, fairtrader, ozgur, TipmyPip, Quad), 604 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
fairtrader, hus, Vurtis, Harry5, KelvinC
19019 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 2 1 2
Re: Quick help [Re: xXxGuitar511] #128207
05/07/07 00:00
05/07/07 00:00
Joined: Oct 2004
Posts: 1,655
T
testDummy Offline
Serious User
testDummy  Offline
Serious User
T

Joined: Oct 2004
Posts: 1,655
Quote:

A veriable ALWAYS has a value.



Well...
Code:

/*****this untested, probably faulty code is
Copyright testDummy Enterprises LTD, Hairy Bear Balls Division
*****/

#define EMPTY 0
// function price as is: $0.20 a call
// bonus: engine probably complains with dialog if var is 'empty'

DLLFUNC var varIsNotEmpty(STRING* _sVarName) {
if (_sVarName == EMPTY) { return _VAR(EMPTY); }
var* var0 = (var*)engine_getobj(_sVarName->chars);
return _VAR((int)var0 != EMPTY);
}



reference: C-Lite, var_for_name?

Re: Quick help [Re: testDummy] #128208
05/07/07 03:20
05/07/07 03:20
Joined: Mar 2006
Posts: 2,503
SC, United States
xXxGuitar511 Offline
Expert
xXxGuitar511  Offline
Expert

Joined: Mar 2006
Posts: 2,503
SC, United States
First note, "Hairy Bear Balls Division". Nice... lol.

And I meant in c-script, not lite-C. But still, whats the point. This is bad programming. There are much better ways to do something like this...

I'm gonna drop this though. Do whatever you want, it's not worth arguing about...


xXxGuitar511
- Programmer
Page 2 of 2 1 2

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1