I see so many examples like below; however, I want to be able to pass a string that holds 'Account' or custom object name for example. The examples I see on SF are hard coding Account.
The reason I need this is because I have a table that users could enter any table name in that they want to get get data from within my code so I cannot possibly know what tables a person has in their org, they do!
//I need something like
String myObjectName = 'Account';
Schema.DescribeSObjectResult d = myObjectName.sObjectType.getDescribe();
//FROM SF Examples
Schema.DescribeSObjectResult d = Account.sObjectType.getDescribe();
Map<String, Schema.FieldSet> FSMap = d.fieldSets.getMap();