Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Listbox rowsource of substr
Message
De
14/01/2004 16:05:30
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Listbox rowsource of substr
Divers
Thread ID:
00866897
Message ID:
00866897
Vues:
77
I am converting a FPD26 screen that used to popup a browse window in DOS. I have created a listbox to hold the values on the form but the problem I am running into is how to get the listbox to recognize the values. Right now it stuffs the columns using SUBSTR() with the entire contents of the field de_data. Here is my new code:
thisform.list1.rowsource = substr(master.de_data,62,20), substr(de_data,2,25), de_profile
two of the colums are a substr of the field. I have tried using a rowsourcetype of 6 - fields to no avail. Anyway to do this?

Here is the original FPD26 code:
BROWSE FIELDS ;
	x2 = substr(de_data,62,20) :H="License#", ;
	x1 = substr(de_data,2,25) :H="Name", ;
	x3 = de_profile :H="System ID" ;
	FREEZE x2 ;
TIA!
Tracy
.·*´¨)
.·`TCH
(..·*

010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform