Hello,
The webbrowser form macro works good but i want to give a different value which is put in a text file.
i want to replace the line
Let>FieldValue={"juni"}
with the value which is enclosed in the file C:month.txt
the first line of this file = Let>FieldValue={"mei"}
(this chanches all the time)
How do I do this.
thanks
Greetings from the Netherlands, Hoorn
Simon
variable with vb.net
Moderators: Dorian (MJT support), JRL
-
- Newbie
- Posts: 8
- Joined: Sun Apr 09, 2006 10:40 pm
forgotten item
I was forgotten to tell whats it depend on
it depends on if the file exixts or not
sorry
simon
it depends on if the file exixts or not
sorry
simon
You may find this useful.... of course if the file simply contained the data, then it would be simpler because parsing the line would not be required.
Code: Select all
IfFileExists>c:\month.txt
ReadLn>c:\month.txt,1,strLine
Length>strLine,strLine_len
If>StrLine_len>17
Sub>StrLine_len,17
MidStr>strLine,17,strLine_len,strSub
Endif
//Let>FieldValue={"juni"}
Let>FieldValue={%strSub%}
Else
Let>FieldValue={"some_default_value"}
Endif
MessageModal>FieldValue
File: c:\month.txt
----------------------
Let>FieldValue={"mei"}