cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
DavidQVI
Level 2

SdAskOptionsList is not working for me?

I am using a self created features but my list of items are not being displayed

Here I my code snippet (all variables are defined properly)


listDirs = ListCreate(STRINGLIST);

// Find requested elements place them into the list.
FindAllDirs (BackupDir, EXCLUDE_SUBDIR, listDirs);

nResult = ListCount(listDirs);
if ( nResult > 0) then

szSaveMEDIAValue = MEDIA;
MEDIA = "MyList";

// Get the first number from the list.
nResult = ListGetFirstString (listDirs, svLine);
// Loop while not at end of list.
while (nResult != END_OF_LIST)
// Display the number retrieved from the list.
FeatureAddItem(MEDIA, svLine, 0, FALSE);
// Get the next number from the list.
nResult = ListGetNextString (listDirs, svLine);
endwhile;


SdAskOptionsList ("title", "msg", "", EXCLUSIVE);

//Restore the media
MEDIA = szSaveMEDIAValue;
endif;

ListDestroy(listDirs);
Labels (1)
0 Kudos

(1) Reply
DavidQVI
Level 2

WOW the problem was SdAskOptionsList does not like items with slashes in them.
0 Kudos