Jump to content

Recommended Posts

Posted (edited)

 

You can't define local variables within the code like you would in C / C++.

int mySpecialInt = 56; // Not Allowed! 
 
there are some predefined variables to use
 
i0, i1, i2.... i9 (last?) for integers
s0, s1 for strings
f0, f1 for floats
 
 
you can use even loops
<quote>
for(i0 = 1; i0 < 9 ; i0 = ( i0 + 1 )) {
 
FHTML_SetStr(fhtml0, "estateID"+MakeFString(10+i0,"","","","",""), MakeFString(estate_ID+i0+40,"","","","",""));
FHTML_SetStr(fhtml0, "estateOwner"+MakeFString(10+i0,"","","","",""), MakeFString(estate_ID+i0,"","","","",""));
}
</quote>
 
but really this supported by NCSOF compiler
what can do  your comercial compilers i do not know
Edited by smeli
Posted

 

 
there are some predefined variables to use
 
i0, i1, i2.... i9 (last?) for integers
s0, s1 for strings
f0, f1 for floats
 
 
you can use even loops
<quote>
for(i0 = 1; i0 < 9 ; i0 = ( i0 + 1 )) {
 
FHTML_SetStr(fhtml0, "estateID"+MakeFString(10+i0,"","","","",""), MakeFString(estate_ID+i0+40,"","","","",""));
FHTML_SetStr(fhtml0, "estateOwner"+MakeFString(10+i0,"","","","",""), MakeFString(estate_ID+i0,"","","","",""));
}
</quote>
 
but really this supported by NCSOF compiler
what can do  your comercial compilers i do not know

 

 

Exactly right. Read my post again :P

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock