Frank Rocco
|
Posted: 05/23/2001, 4:28 AM |
|
Hello,
Where can I find a reference to the variables that Codecharge generates
along with a syntax for working with them?
If I want to grab a variable in a Codecharge form, what is the syntax?
Thanks
Frank
|
|
|
CodeCharge
|
Posted: 05/24/2001, 12:34 PM |
|
You can find the reference in the Help file, in the subject: User Guide ->
Programming -> Variables
There is no specific syntax to work with CodeCharge variables. CodeCharge
doesn't use any language of its own, and instead it generates the standard
language that you choose. You may refer to many resources available on the
Internet regarding specific language functions.
The main variables that you would usually use, are your database field names
prefixed with "fld".
If you want to grab a variable in CodeCharge form, you could use the
variable fld<fieldname>.
For example you may have a registration form with a checkbox asking user if
he wants to subscribe to your YahooGroups.
Then you can have the AfterInsert Event in ASP that will send subscription
email to YahooGroups like this:
'AfterInsert Begin
if fldsubscribe_user = 1 then
Set objCDO = Server.CreateObject("CDONTS.NewMail")
objCDO.From = fldemail
objCDO.To = "mygroup-subscribe@yahoogroups.com"
objCDO.Subject = "Subscribe"
objCDO.Body = ""
objCDO.MailFormat = 0
objCDO.Send
set objCDO=Nothing
end if
'AfterInsert End
Notice "fldsubscribe_user" and "fldemail". They correspond to the database
fields "sybscribe_user" and "email", which are placed on the form.
"Frank Rocco" <farocco@hotmail.com> wrote in message
news:9eg6sa$2q1$1@mail.tankhill.com...
> Hello,
>
> Where can I find a reference to the variables that Codecharge generates
> along with a syntax for working with them?
>
> If I want to grab a variable in a Codecharge form, what is the syntax?
>
> Thanks
> Frank
>
>
|
|
|
|