Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Disabling read statments
Message
From
19/10/1999 16:15:13
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00278359
Message ID:
00278452
Views:
19
>>>I have a slew of @ say get statements such as
>>>stat_date1 -->stat_date25 and want to be able to disable any ones that have values in them. This is an app in foxpro/DOS 2.5( I know but they like it) looking for a programatic way to do this.
>>
>>IF EMPTY(field)
>> SHOW GET field ENABLE
>>ELSE
>> SHOW GET field DISABLE
>>ENDIF
>**************
>The thing is I already have it hard coded which looks like
>
>"@ 5,0 SAY "Statmnt_dt" ;
> SIZE 1,10, 0
>@ 5,11 GET statmnt_dt ;
> SIZE 1,5 ;
> DEFAULT " " VALID STATMNT_DT $ SV
>@ 7,1 SAY "Stat_date1" ;
> SIZE 1,10, 0
>@ 7,14 GET stat_date1 ;
> SIZE 1,5 ;
> DEFAULT " " VALID STAT_DATE1 $ SV
>@ 7,23 SAY "Statamt_1" ;
> SIZE 1,9, 0
>@ 7,35 GET statamt_1 ;
> SIZE 1,7 ;
> DEFAULT 0
>@ 7,48 SAY "Credit1" ;
> SIZE 1,7, 0
>@ 7,59 GET credit1 ;
> SIZE 1,9 ;
> DEFAULT 0"
>but keeps going to about credit20. that's alot of code so I was hoping for some fnct or quik&dirty method.Perhaps a macro or something.

You can call this from the READ's Show code. I don't get what you mean by quick and dirty method (I know what that means) but I don't see how that applies here. Another thing you might want to look into is GENSCRNX, but I wouldn't even have any idea where you could find that nowadays.
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform