i try to resolve the error i get in this line:
n:=1
headline1_date%n% <> %headline1_date_%n%%
Error: Empty variable reference (%%).
simple question
Re: simple question
it is actually like this:
n:=1
headline1_date_%n% := "some value"
headline1_date%n% <> %headline1_date_%n%%
Error: Empty variable reference (%%).
n:=1
headline1_date_%n% := "some value"
headline1_date%n% <> %headline1_date_%n%%
Error: Empty variable reference (%%).
nnnik wrote:Well Headline1_date seems to be empty.
- tomoe_uehara
- Posts: 213
- Joined: 05 Oct 2013, 12:37
- Contact:
Re: simple question
Well, it's considered empty because of the last %%
Code: Select all
n := 1
headline1_date%n% := "apple"
headline2 := "orange"
if (headline1_date%n% <> headline2)
MsgBox It's different!
else
MsgBox It's equal!
headline1_date%n% := "apple"
headline2 := "apple"
if (headline1_date%n% <> headline2)
MsgBox It's different!
else
MsgBox It's equal!
ExitApp
Re: simple question
thanks! my question above was posted hastily and not in full. basically, i was wondering if i could wrap % inside of %% (%headline1_date_%n%%), which could end in something like %something%n%%
- emmanuel d
- Posts: 90
- Joined: 17 Nov 2013, 04:45
Re: simple question
Something like this?:
Code: Select all
n:=1
headline1_date_%n% := "some value"
something:= "headline1_date_" ; something must have a value
var := %something%%n% ; 2 dynamic variables, the same as headline1_date_1
msgbox,%var%
Re: simple question
thanks! i think in the end, i did something similar:
headline := "Headline: "
ht := headline1_title_%n% ; Must be ":=" NOT "="
hh = %headline%%ht% ; Must be "=" NOT ":="
Title = %hh% >> ; Must be "=" NOT ":="
...
headline := "Headline: "
ht := headline1_title_%n% ; Must be ":=" NOT "="
hh = %headline%%ht% ; Must be "=" NOT ":="
Title = %hh% >> ; Must be "=" NOT ":="
...
Who is online
Users browsing this forum: Google [Bot] and 242 guests