Sunday, August 28, 2005 12:45:34 PM (GMT +02:00)
event from button :
local tDbA = ""
local i = 0
local tDataA = ""
put "mysql" into tDbA["Type"]
if dbaddress is empty then put "127.0.0.1" into dbaddress
put fld "dbaddress" into tDbA["Host"]
put "bb" into tDb
Off-hand I spotted a couple of potential problem spots (haven't spent
a lot of time analyzing whether these are the only problems):
On Aug 28, 2005, at 2:46 AM, Revolution wrote:
Sunday, August 28, 2005 12:45:34 PM (GMT +02:00)
event from button :
local tDbA = ""
local i = 0
local tDa
Dan-
Sunday, August 28, 2005, 6:12:39 PM, you wrote:
>> local tDbA = ""
>> local i = 0
>> local tDataA = ""
> The above lines are doing nothing for you because they are incorrect
> syntax for Revolution. The expression "i = 0" evaluates to either
> true or valse but does nothing with the
On Aug 28, 2005, at 2:46 AM, Revolution wrote:
if dbaddress is empty then put "127.0.0.1" into dbaddress
put fld "dbaddress" into tDbA["Host"]
You are checking if a variable is empty and putting "127.0.0.1" into
the variable. You then place the contents of the field into the
On Aug 28, 2005, at 6:12 PM, Dan Shafer wrote:
Sunday, August 28, 2005 12:45:34 PM (GMT +02:00)
event from button :
local tDbA = ""
local i = 0
local tDataA = ""
The above lines are doing nothing for you because they are
incorrect syntax for Revolution. The expression "i = 0" evaluates
Dan,
Except for script locals, which I (and I believe manyu others) use a
lot. They're a lot like globals, except only available script wide, and
great for libraries. To use them you only need to put the local
declaration outside the handler and functions which use it.
On caveat though: Reme
Dan Shafer wrote:
Off-hand I spotted a couple of potential problem spots (haven't spent
a lot of time analyzing whether these are the only problems):
On Aug 28, 2005, at 2:46 AM, Revolution wrote:
Sunday, August 28, 2005 12:45:34 PM (GMT +02:00)
event from button :
local tDbA = ""
loc
Just goes to show you. I learn something every day about this language.
It would never have occurred to me to use an equal sign that way in
Rev. I'm almost sorry I know that!
:-D
Dan
On Aug 28, 2005, at 8:46 PM, Trevor DeVore wrote:
On Aug 28, 2005, at 6:12 PM, Dan Shafer wrote:
Sunday,