CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> Archive -> CodeChargeStudio.Discussion

 Display ASP variable or function values?

Print topic Send  topic

Author Message
Luis
Posted: 03/14/2003, 4:44 PM

Hello, I have a problem. I want to display the values of some ASP variables
within a codecharge generated page.

1. I create a label form object
2. I change it's source to code expression
3. In the value I type the name of the variable or a function

When I generate the code, the variable value never shows. I even tried by
changing the value to date or now (which are built it vbscript function),
but nothing shows.

What am I missing here? , how do I display a variable content or a function
result into a label?

Thanks a lot

DonB
Posted: 03/14/2003, 6:18 PM

To make certain you are coding things correctly, try adding an "action"
instead of "code". One of the actions is to set a control's value. You can
experiment with this by filling out the property page fields for "Control",
"Source Type" and "SourceName".

Then look at the code that CCS generates to see what the proper syntax looks
like. You can get rid of the Action and write your own block of customer
code following that example.

CCS really does not hide any of its functionality from you. You can see all
the code it generates, and be sure to look through that - there is a wealth
of knowledge waiting for you there. Where it gets tricky is figuring out
what variables are in scope and how to properly reference an object's
properties and methods. Again the experiment above will help a great deal
in understanding those references.

DonB


"Luis" <luis@xxx.com> wrote in message
news:b4tt17$1an$1@news.codecharge.com...
> Hello, I have a problem. I want to display the values of some ASP
variables
> within a codecharge generated page.
>
> 1. I create a label form object
> 2. I change it's source to code expression
> 3. In the value I type the name of the variable or a function
>
> When I generate the code, the variable value never shows. I even tried by
> changing the value to date or now (which are built it vbscript function),
> but nothing shows.
>
> What am I missing here? , how do I display a variable content or a
function
> result into a label?
>
> Thanks a lot
>
>

Sixto Luis Santos
Posted: 03/14/2003, 6:21 PM

Change the data type to Text and assign the variable or function to Data
Source.

Regards,

Sixto


"Luis" <luis@xxx.com> wrote in message
news:b4tt17$1an$1@news.codecharge.com...
> Hello, I have a problem. I want to display the values of some ASP
variables
> within a codecharge generated page.
>
> 1. I create a label form object
> 2. I change it's source to code expression
> 3. In the value I type the name of the variable or a function
>
> When I generate the code, the variable value never shows. I even tried by
> changing the value to date or now (which are built it vbscript function),
> but nothing shows.
>
> What am I missing here? , how do I display a variable content or a
function
> result into a label?
>
> Thanks a lot
>
>


   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.