int EditGetText(int ed, char *text);

 

Gets the value of the specified edit box.

 

Return Value

 

Return value not used.

 

Parameters

 

ed

Edit box handle.

 

text

Value to be retrieved from the edit box.

 

Remarks

 

EditGetText() will get the value of the text in the specified edit box.

 

Availability

 

Available in DragonFireSDK 1.2 and later.

Example

 

#include "DragonFireSDK.h"

#include <string.h>

 

int edit;

 

int OnEditDone()

{

  char EditText[100];

 

   EditGetText(edit, EditText);

 

  if (strcmp(EditText, "foo") == 0)

   {

       EditSetText(edit, "bar");

   }

 

  if (strcmp(EditText, "bye") == 0)

   {

       EditSetVisible(edit, 0);

   }

 

  return(0);

}

 

void AppMain()

{

   ViewAdd("MyForm.png",0,0); // display a form background with white edit boxes

   edit = EditAdd(10, 80, 50);

   EditSetLabel(edit, "Email");

   EditSetOnDone(OnEditDone);

}

 

void AppExit()

{

 

}

 

void OnTimer()

{

 

}