Method WMLDeck():newCard() Professional

Create a WMLCard object.

Syntax
:newCard( [<cTitle>]     , ;
          [<cCardID>]    , ;
          [<lNewContext>], ;
          [<cOptions>] ) --> oWMLCard
Parameters
<cTitle>
The optional parameter <cTitle> becomes the value of the title attribute.
<cCardID>
The optional parameter <cCardID> becomes the value of the id attribute.
<lNewContext>
If the optional parameter <lNewContext> is .T. (true) the character string "true" is assigned to the attribute newcontext.
<cOptions>
The optional parameter <cOptions> is a character string that is inserted into the WML <card> tag.
Return

The method returns a new instance of the class WMLCard

Description

This method creates a new WMLCard object and inserts a <card> tag into the WML code. All parameters are optional. If the card ID is not specified, it is created from the ordinal position of the new card in the card-deck (e.g: id="card1", id="card2", id="card3", etc.)

WML output:

<card id="[cCardID]" [title="cTitle]"
     [newcontext="true"] [cOptions]> 
[... WML code created by WMLCard object ...] 
</card> 

PRG example:

oWMLCard := oWMLDeck:newCard( "Login" ) 

Feedback

If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.