Reply to this subject
Start a new subject
 
Refresh page
| Posted by |
Carol L.
(2 posts) bio
|
| Date |
Thu 18 Aug 2011 07:07 PM (UTC) [ quote
] |
| Message |
Want to find a variable in a string. The variable changes.
volume = GetFieldValue("sqltable", "sqlfield")
if string.find(header.InnerText, "vol.(volume) Barcode:", "") ~= nil then
local bcode = string.gsub(header.InnerText, "vol.(volume) Barcode:", "");
SetFieldValue("sqltable", "othersqlfield", bcode);
end
I am not doing something right here. How do I put the variable 'volume' in the pattern? | top |
|
| Posted by |
Fiendish
USA (849 posts) bio
Global Moderator |
| Date |
Reply #1 on Thu 18 Aug 2011 09:04 PM (UTC) [ quote
] |
| Message |
instead of try "vol.("..volume..") Barcode:"
|
http://aardwolfclientpackage.googlecode.com/ | top |
|
| Posted by |
Carol L.
(2 posts) bio
|
| Date |
Reply #2 on Fri 19 Aug 2011 01:39 PM (UTC) [ quote
] |
| Message |
| Thanks! Just started trying to teach myself Lua for work apps. Much appreciated. | top |
|
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.
826 views.
Reply to this subject
Start a new subject
 
Refresh page
top
Comments to:
Gammon Software support
Forum RSS feed ( http://www.gammon.com.au/rss/forum.xml )