Skip to content

Instantly share code, notes, and snippets.

@dickiedyce
Created September 7, 2023 19:11
Show Gist options
  • Save dickiedyce/6700300e22c3e48d71938a239d94a5e8 to your computer and use it in GitHub Desktop.
Save dickiedyce/6700300e22c3e48d71938a239d94a5e8 to your computer and use it in GitHub Desktop.
Create a Markdown table of fields from base tables in a FileMaker file.
Let (
baseTables = "'" &
ExecuteSQL (
"SELECT TableName FROM FILEMAKER_TABLES WHERE TableName = BaseTableName" ;
"" ;
"','"
) & "'" ;
Substitute (
",TableName,FieldName,FieldType,FieldID,FieldClass,FieldReps,ModCount," & ¶ &
",----,----,----,----,----,----,----," & ¶ &
ExecuteSQL (
"SELECT '',TableName,FieldName,FieldType,FieldID,FieldClass,FieldReps,ModCount,'' FROM FILEMAKER_FIELDS WHERE TableName IN (" &
baseTables & ")" ;
"" ;
""
) ;
"," ;
"|"
)
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment