DgsGetType

From Multi Theft Auto: Wiki

This function is used to retrieve the type of a dgs element, an element even a string/number/bool value.

Syntax

string dgsGetType ( mixed theMixed )  

Required Arguments

  • theMixed: What you wish to get the type of.

Returns

Returns a string containing the type, false if invalid arguments were passed.

Example

DGS = exports.dgs

label = DGS:dgsCreateLabel(100,100,200,50,"Test Label",false)
outputChatBox(DGS:dgsGetType(label)) -- returns "dgs-dxlabel"

outputChatBox(DGS:dgsGetType("str")) -- returns "string"

See Also

Multi Language Supports

Animation

3D Interface

3D Text

Arrow List

Browser

Button

Check Box

Combo Box

Edit

Ellipse Detect Area

Detect Area

Grid List

Image

Memo

Label

Progress Bar

Radio Button

Scroll Bar

Scroll Pane

Switch Button

Tab Panel

Window

Plugin

Media Browser

Rounded Rectangle

Color Picker

Blur Box

Effect 3D