03-12-2005, 04:07 PM
Hi!
In RapidQ there are ( from C) next syntax
a$="1234"
c$=a$[3]
print c$ ' printed 3
In FreeBasic [..] is used for pointers
I Try
It works
but when I try this
- there are error
Well, I know it's not correct syntax - but how can I do it?
And with this code compiler seems freeze
In RapidQ there are ( from C) next syntax
a$="1234"
c$=a$[3]
print c$ ' printed 3
In FreeBasic [..] is used for pointers
I Try
Code:
#DEFINE char(a$,i) (mid$(a$, i, 1))
dim aaa as string
aaa="1234"
z$=char(aaa,3)
print z$
It works
but when I try this
Code:
#DEFINE a{i} mid$(a, i, 1)
print aaa{2}
Well, I know it's not correct syntax - but how can I do it?
And with this code compiler seems freeze
Code:
#DEFINE a${i} mid$(a$, i, 1)
#DEFINE char(a$,i) (mid$(a$, i, 1))
dim aaa as string
aaa="1234"