Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP 5.0 Listbox Column Separator
Message
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00176259
Message ID:
00176273
Views:
22
Wayne,

Go back to Alias as Type, RowSource=tablename.FirstFieldName,SecondFieldName and then set ColumnWidth=100,200

You'll get the field phrase error if you specify the alias on anything but the first field.

>I am trying, without success, to use the Rowsource property of the standard list box in visual foxpro 5.0 and have 2 columns populated, only the first needs to be visable.
>
>Property Assignments being used are:
>
>.ColumnCount = 2
>.RowSourceType = 2 && Alias -- Was 6 - fields
>.RowSource = 'AllTrim(' + lcPrefix + This.mcSourceTable + "." + Field(1) + lcSuffix + ' )' + Chr(9) + This.mcSourceTable + '.Seq_num'
>
>
>This works without error but the separator, Chr(9), doesn't seem to have any effect. I can't see anything in my second column. I have tried this same statement with the alias-2 and field-6 Rowsource property types with the same results. If I replace the Chr(9) with a comma I get a field reference error ( "field" phrase is not found (Error 1130) ).
>
>Does anyone have any idea or sulution ????
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Reply
Map
View

Click here to load this message in the networking platform