老
老莫
Unregistered / Unconfirmed
GUEST, unregistred user!
我想把font.style写到ini文件里去。我想style应该是枚举类型的
因此我这样写
case memo1.font.Style of
fsbold: wordproIni.WriteString('setting', 'fontstylebold','fsbold');
fsItalic:wordproIni.WriteString('setting', 'fontstyleItalic','fsItalic');
fsUnderline:wordproIni.WriteString('setting', 'fontstyleUnderline','fsUnderline');
fsStrikeOut: wordproIni.WriteString('setting', 'fontstyleStrikeOut','fsStrikeOut');
end;
但编译通不过,提示case memo1.font.Style of这一句
Ordinal type required
way?
因此我这样写
case memo1.font.Style of
fsbold: wordproIni.WriteString('setting', 'fontstylebold','fsbold');
fsItalic:wordproIni.WriteString('setting', 'fontstyleItalic','fsItalic');
fsUnderline:wordproIni.WriteString('setting', 'fontstyleUnderline','fsUnderline');
fsStrikeOut: wordproIni.WriteString('setting', 'fontstyleStrikeOut','fsStrikeOut');
end;
但编译通不过,提示case memo1.font.Style of这一句
Ordinal type required
way?