DefStr Statement /text/sbasic/shared/03101140.xhp
DefStr statement

DefStr Statement

If no type-declaration character or keyword is specified, the DefStr statement sets the default variable type, according to a letter range.
Sub ExampleDefStr sStr=String ' sStr is an implicit string variable Print VarType(slice), strng, TypeName(sheet) ' Result is: 8 "" String End Sub